コード例 #1
0
        /// <summary>
        /// 怪物死亡
        /// </summary>
        override public void AgentDie()
        {
            if (agent.isDead)
            {
                return;
            }

            agent.isDead = true;

            ExploreUICotroller expUICtr = bmUICtr.GetComponent <ExploreUICotroller> ();

            expUICtr.QuitFight();

            StopCoroutinesWhenFightEnd();

            bpCtr.StopCoroutinesWhenFightEnd();

            this.armatureCom.animation.Stop();

            CancelInvoke();

            boxCollider.enabled = false;

            exploreManager.GetComponent <ExploreManager>().BattlePlayerWin(new Transform[] { transform });

            PlayRoleAnim("die", 1, delegate {
                exploreManager.GetComponent <MapGenerator>().AddMonsterToPool(this);
            });
        }