/// <summary> /// 玩家死亡 /// </summary> override public void AgentDie() { if (agent.isDead) { return; } agent.isDead = true; StopCoroutinesWhenFightEnd(); // 如果是在战斗中死亡的 if (bmCtr != null) { bmCtr.StopCoroutinesWhenFightEnd(); ActiveBattlePlayer(false, false, true); ExploreManager em = exploreManager.GetComponent <ExploreManager> (); em.DisableInteractivity(); PlayRoleAnim("die", 1, () => { em.BattlePlayerLose(); }); return; } // 如果不是在战斗中死亡的 PlayRoleAnim("die", 1, () => { agent.ResetBattleAgentProperties(true); exploreManager.GetComponent <ExploreManager>().QuitExploreScene(false); }); }