Exemplo n.º 1
0
        public override void CleanUp()
        {
            base.CleanUp();

            spikeStateMachine.CleanUp();
            spikeStateMachine = null;
        }
Exemplo n.º 2
0
        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;
        }