Example #1
0
    public void StartNewGame()
    {
        gameDataManager.InitData();
        moduleInit();
        //GameRoot.GetInstance().mainUIMng.OpenUI(9);

        List <int> uiList = new List <int>
        {
            7
        };
        Action action = new Action(() => {
            BattleStartAction();
            CameraMng.SetSelectHeroFactor();
            fieldObj = Instantiate(BattleField.assetManager.GetField(0));
            fieldObj.transform.position = Vector3.zero;

            battleData = gameDataManager.GetBattleData();
            Bridge.StartStrategy(battleData);
        });

        mainUIMng.OpenScene(uiList, action, "魔王室");
    }