Beispiel #1
0
 private void Awake()
 {
     starController.LoadStar();
     skinUI.LoadSkin();
     weaponStoreUI.Loadweapon();
     settingControllerUI.LoadSetting();
     questControllerUI.LoadQuest();
     powerUI.LoadData();
 }
Beispiel #2
0
    void defaultUI()
    {
        HomeMenuUI.SetActive(true);
        MainScreenUI.SetActive(true);
        BattleUIPVP.SetActive(false);
        BattleUI.SetActive(false);
        LukySpinUI.SetActive(false);
        GameMenuUI.SetActive(false);
        popUp.SetActive(false);
        popUpPVP.SetActive(false);

        string pathSkin = Application.persistentDataPath + "/Skin.dat";

        if (File.Exists(pathSkin))
        {
            skinUI.LoadSkin();
        }

        string pathWeapon = Application.persistentDataPath + "/Weapon.dat";

        if (File.Exists(pathWeapon))
        {
            weaponStoreUI.Loadweapon();
        }
    }