示例#1
0
        public override void StateBegin()
        {
            gameMainProgram = GameMainProgram.Instance;
            gameMainProgram.Initialize();
            gameMainProgram.courseMgr.Enable           = false;
            gameMainProgram.courseMgr.EnableNormalMenu = true;
            // Player
            gameMainProgram.playerMgr.BuildPlayer(Vector3.zero, Quaternion.identity);

            gameMainProgram.playerMgr.CanInput = false;  // 禁止输入

            //UI初始化
            //gameMainProgram.uiManager.ShowUIForms("FadeOut");
            gameMainProgram.uiManager.ShowUIForms("MainMenu");
            //gameMainProgram.audioMgr.PlayMusic(1);
        }
示例#2
0
        public override void StateBegin()
        {
            gameMainProgram = GameMainProgram.Instance;
            gameMainProgram.Initialize();
            // 启用Mgr
            gameMainProgram.courseMgr.Enable = true;
            // 场景初始化
            gameMainProgram.playerMgr.BuildPlayer(Vector3.zero, Quaternion.identity);
            gameMainProgram.playerMgr.CanInput = true;  // 接受输入
            // Npc在Player之后
            //gameMainProgram.npcMgr.CreateNpc("Merchant");

            // UI在后面初始化
            gameMainProgram.uiManager.ShowUIForms("PlayerHUD");
            //【测试时先关闭,打包需要删除】GameMainProgram.Instance.uiManager.ShowUIForms("FadeOut");
            //gameMainProgram.audioMgr.PlayMusic(2);
        }
示例#3
0
 public override void StateBegin()
 {
     gameMainProgram = GameMainProgram.Instance;
     gameMainProgram.Initialize();
     // 启用Mgr
     gameMainProgram.courseMgr.Enable = true;
     // 场景初始化
     gameMainProgram.playerMgr.BuildPlayer(new Vector3(0, 0, -7), Quaternion.identity);
     gameMainProgram.playerMgr.CanInput = true;  // 接受输入
     // 创建Enemy
     gameMainProgram.enemyMgr.AddEnemy(new EnemyCaptain(gameMainProgram.resourcesMgr.LoadAsset
                                                            (@"Enemys\OspreyCaptain", false, new Vector3(0, 0, 7), Quaternion.Euler(0, -180, 0))));
     // UI在后面初始化
     gameMainProgram.uiManager.ShowUIForms("PlayerHUD");
     gameMainProgram.uiManager.ShowUIForms("MedicineHUD");
     gameMainProgram.audioMgr.PlayMusic("TheLastGuardian");
 }
示例#4
0
        public override void StateBegin()
        {
            gameMainProgram = GameMainProgram.Instance;
            gameMainProgram.Initialize();
            // 启用Mgr
            gameMainProgram.courseMgr.Enable = true;
            // 场景初始化
            gameMainProgram.playerMgr.BuildPlayer(new Vector3(0, 0, -10), Quaternion.identity);
            gameMainProgram.playerMgr.CanInput = true;  // 接受输入

            // 创建Monster
            gameMainProgram.enemyMgr.AddEnemy(new EnemyEyeball(gameMainProgram.resourcesMgr.LoadAsset
                                                                   (@"Enemys\Eyeball", false, new Vector3(0, 2.16f, 10), Quaternion.Euler(0, 180, 0))));
            // UI在后面初始化
            gameMainProgram.uiManager.ShowUIForms("PlayerHUD");
            gameMainProgram.uiManager.ShowUIForms("MedicineHUD");
            //gameMainProgram.audioMgr.PlayMusic("FinalBattle");
        }
示例#5
0
        public override void StateBegin()
        {
            gameMainProgram = GameMainProgram.Instance;
            gameMainProgram.Initialize();
            gameMainProgram.courseMgr.Enable           = false;
            gameMainProgram.courseMgr.EnableNormalMenu = true;
            // 场景初始化
            gameMainProgram.playerMgr.BuildPlayerPeace(new Vector3(-4, 0, -6), Quaternion.Euler(0, -95, 0));
            gameMainProgram.playerMgr.CanInput = true;  // 接受输入
            // Npc在Player之后

            gameMainProgram.npcMgr.CreateNpc("Merchant");
            gameMainProgram.npcMgr.CreateNpc("Recycler");
            gameMainProgram.npcMgr.CreateNpc("Battler");
            gameMainProgram.npcMgr.CreateNpc("Trainer");

            GameMainProgram.Instance.uiManager.ShowUIForms("FadeOut");
            gameMainProgram.audioMgr.PlayMusic("Medieval");
        }
示例#6
0
 public override void StateBegin()
 {
     gameMainProgram = GameMainProgram.Instance;
     gameMainProgram.Initialize();
     // 启用Mgr
     gameMainProgram.courseMgr.Enable = true;
     // 场景初始化
     gameMainProgram.playerMgr.BuildPlayer(Vector3.zero, Quaternion.identity);
     gameMainProgram.playerMgr.CanInput = true;  // 接受输入
     // 相机边界控制
     CameraCtrl.Instance.SetAreaLimit(1.7f, -1.5f, 7, -2.5f);
     // 创建Monster
     //gameMainProgram.enemyMgr.AddEnemy(new EnemyStrongKnight(gameMainProgram.resourcesMgr.LoadAsset
     //  (@"Enemys\StrongKnight", false, new Vector3(0, 0, 7), Quaternion.Euler(0, -180, 0))));
     // UI在后面初始化
     gameMainProgram.uiManager.ShowUIForms("PlayerHUD");
     gameMainProgram.uiManager.ShowUIForms("MedicineHUD");
     //gameMainProgram.audioMgr.PlayMusic("FinalBattle");
 }
示例#7
0
        public override void StateBegin()
        {
            gameMainProgram = GameMainProgram.Instance;
            gameMainProgram.Initialize();
            // 启用Mgr
            gameMainProgram.courseMgr.Enable = true;
            // 场景初始化
            gameMainProgram.playerMgr.BuildPlayer(new Vector3(123, 0, 187), Quaternion.Euler(0, 90, 0));
            //gameMainProgram.playerMgr.BuildPlayer(new Vector3(100, 0, 130), Quaternion.identity);
            gameMainProgram.playerMgr.CanInput = true;  // 接受输入
            // 锁定player的y轴以防和dragon碰撞Bug
            gameMainProgram.playerMgr.CurrentPlayer.Rgbd.constraints = (RigidbodyConstraints)(4 + 16 + 64);

            // UI在后面初始化
            gameMainProgram.uiManager.ShowUIForms("PlayerHUD");
            gameMainProgram.uiManager.ShowUIForms("MedicineHUD");
            GameMainProgram.Instance.uiManager.ShowUIForms("FadeOut");
            gameMainProgram.audioMgr.PlayMusic("Night");
        }
示例#8
0
        public override void StateBegin()
        {
            gameMainProgram = GameMainProgram.Instance;
            gameMainProgram.Initialize();
            // 启用Mgr
            gameMainProgram.courseMgr.Enable = true;
            // 场景初始化
            //CameraCtrl.Instance.EnableAutoCam(false);
            gameMainProgram.playerMgr.BuildPlayer(new Vector3(-6, 0, 3), Quaternion.Euler(0, 120, 0));
            gameMainProgram.playerMgr.CanInput = true;  // 接受输入
            // 创建Enemy
            gameMainProgram.enemyMgr.AddEnemy(new EnemyNormal(gameMainProgram.resourcesMgr.LoadAsset
                                                                  (@"Enemys\Scarecrow", false)));

            // UI在后面初始化
            gameMainProgram.uiManager.ShowUIForms("PlayerHUD");
            gameMainProgram.uiManager.ShowUIForms("FadeOut");
            gameMainProgram.audioMgr.PlayMusic("Torch");
            CoroutineMgr.Instance.StartCoroutine(PlayerStart());
        }