private void RemovingHollyTaskEnter() { var xmasLogBoss = (XmasLog)Boss; _holly = new Holly(xmasLogBoss, xmasLogBoss.HollyAnimator); Boss.CurrentAnimator.Play("IdleNoHolly"); _stateMachine.CurrentState = BehaviourState.HollyAttack; }
public override void Stop() { base.Stop(); Boss.StartShootTimer = false; Boss.ShootTimerFinished -= ShootTimerFinished; Boss.CurrentAnimator.AnimationFinished -= AnimationFinished; if (_holly != null) { _holly.Dispose(); _holly = null; } }