Beispiel #1
0
        /// <summary>
        /// 玩家在战斗中失败
        /// </summary>
        public void BattlePlayerLose()
        {
            // 清除战斗中技能带来的属性变化
            battlePlayerCtr.agent.ClearPropertyChangesFromSkill();
            battleMonsterCtr.agent.ClearPropertyChangesFromSkill();

            battleMonsterCtr.agent.ResetBattleAgentProperties(false);

            battlePlayerCtr.SetRoleAnimTimeScale(1.0f);
            battleMonsterCtr.SetRoleAnimTimeScale(1.0f);

            FightEndCallBacks();

            battleMonsterCtr.ResetToWaitAfterCurrentRoleAnimEnd();

            expUICtr.QuitFight();

            expUICtr.ShowBuyLifeQueryHUD();
        }