public override void CleanUp() { base.CleanUp(); spikeStateMachine.CleanUp(); spikeStateMachine = null; }
public Spike(Vector2 position, int spriteIndex) : base(position, null, spriteIndex) { sprite = new P8Sprite(120); AddComponent(sprite); spikeStateMachine = new SpikeStateMachine(this); var newTags = tags; newTags.Remove("enemy"); tags = newTags; }