コード例 #1
0
        public override void OnBaseEntityDestroyed()
        {
            if (animator != null)
            {
                animator.SetFloat(AnimationHash.MoveSpeed, 0);
            }
            _destroyed = true;
            SoundManager.instance.Play(Global.E_SOUND.SFX_MINION_DEATH);

            PoolManager.instance.ActivateObject(ActorProxy.IsBottomCamp() ? "Effect_Death_blue" : "Effect_Death_red", ts_HitPos.position);
            foreach (var autoDeactivate in _dicEffectPool)
            {
                autoDeactivate.Value.Deactive();
            }

            base.OnBaseEntityDestroyed();
        }