AnodyneSharp.Entities.Gadget.Key.Collided C# (CSharp) Method

Collided() public method

public Collided ( Entity other ) : void
other Entity
return void
        public override void Collided(Entity other)
        {
            if (visible)
            {
                visible = false;
                GlobalState.inventory.AddCurrentMapKey();
                SoundManager.PlaySoundEffect("keyget");
                _preset.Alive = false;
            }
        }
    }