Example #1
0
        private IEnumerator AfterBossDead()
        {
            // 首先要禁止暂停和移除监听
            Enable           = false;
            EnableNormalMenu = false;
            yield return(new WaitForSeconds(3));

            gameMain.playerMgr.CurrentPlayer.Gold += 100;
            UIMessageBox.AddMessage("战斗胜利,10秒后返回");
            yield return(new WaitForSeconds(10));

            UIMessageBox.AddMessage("任务完成,获得100金币");
            yield return(new WaitForSeconds(1));

            GameMainProgram.Instance.uiManager.ShowUIForms("FadeIn");
            yield return(new WaitForSeconds(2.5f));

            // 【以后需要修改】
            GameLoop.Instance.sceneStateController.SetState(SceneState.VillageScene);
            // 【以后需要修改】
        }