Exemple #1
0
    void CreateBattleView()
    {
        UIManager.Instance.ReleaseAllUIOfCurrentUnityScene();
        UIManager.Instance.ShowUI(UIDef.UIBattlePanel);

        GameObject prefab = Resources.Load <GameObject>("GameInput");
        GameObject go     = GameObject.Instantiate(prefab);

        go.name = "GameInput";
        GameInput.DisableInput();

        go = new GameObject("BattleView");
        go.AddComponent <BattleView>();
    }