alotta upgrade stuff but no upgrades
This commit is contained in:
parent
b9fb490dce
commit
3b60583c76
35 changed files with 2937 additions and 61 deletions
|
|
@ -12,18 +12,16 @@ public class ItemPickup : MonoBehaviour
|
|||
{
|
||||
if (inRange)
|
||||
{
|
||||
rb.linearVelocity = (transform.position - AbilityManager.instance.player.transform.position).normalized * speed;
|
||||
rb.linearVelocity = (AbilityManager.instance.player.transform.position - transform.position).normalized * speed;
|
||||
}
|
||||
}
|
||||
|
||||
private void OnTriggerEnter2D(Collider2D other)
|
||||
{
|
||||
PickupEffects();
|
||||
Destroy(gameObject);
|
||||
}
|
||||
|
||||
protected virtual void PickupEffects()
|
||||
public virtual void PickupEffects()
|
||||
{
|
||||
|
||||
Destroy(gameObject);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue