Exemple #1
0
        private void RemovingHollyTaskEnter()
        {
            var xmasLogBoss = (XmasLog)Boss;

            _holly = new Holly(xmasLogBoss, xmasLogBoss.HollyAnimator);
            Boss.CurrentAnimator.Play("IdleNoHolly");

            _stateMachine.CurrentState = BehaviourState.HollyAttack;
        }
Exemple #2
0
        public override void Stop()
        {
            base.Stop();

            Boss.StartShootTimer     = false;
            Boss.ShootTimerFinished -= ShootTimerFinished;
            Boss.CurrentAnimator.AnimationFinished -= AnimationFinished;

            if (_holly != null)
            {
                _holly.Dispose();
                _holly = null;
            }
        }