SunsetHigh.Pickup.onCollide C# (CSharp) Method

onCollide() public method

We assume whenever the Hero collides with a pickup he picks it up.
public onCollide ( IInteractable other ) : void
other IInteractable
return void
        public override void onCollide(IInteractable other)
        {
            base.onCollide(other);
            Hero.instance.pickup(this);     //roundabout.. change later
        }