void Start() { if (!Debugger.IsSpawn) { DeployDebugger(); } if (!PopupUI.IsInit) { DeployPopupUI(); } if (!GameDictionary.IsInit) { GameDictionary.InitDic(); } if (IsInit) { return; } MyAudio.PlayLoopSound(BGM, "bgm"); Player.Init(); DontDestroyOnLoad(gameObject); SR.Init(); Player.AutoLogin(); IsInit = true; }
void Start() { if (!GameDictionary.IsInit) { GameDictionary.InitDic(); } MyRecordUI.Init(); Start_Title.text = GameDictionary.String_UIDic["Start"].GetString(Player.UseLanguage); }
/// <summary> /// 起始設定 /// </summary> void SetData() { //字典 GameDictionary.InitDic(); //Player PlayerTrans[0].GetComponent <PlayerChara>().IniChara(0, GameDictionary.TmpChara1Dic); PlayerTrans[1].GetComponent <PlayerChara>().IniChara(1, GameDictionary.TmpChara2Dic); PlayerTrans[2].GetComponent <PlayerChara>().IniChara(2, GameDictionary.TmpChara3Dic); //Timer IniTimer(); //場景 IniScene(); }
void Awake() { if (!Debugger.IsSpawn) { DeployDebugger(); } if (!GameDictionary.IsInit) { GameDictionary.InitDic(); } IsRevived = false; IsPause = false; CanPressSettingBtn = true; MySelf = transform.GetComponent <BattleManager>(); HideBounceWall(); SetNormanWall(); StartGame(); }
void SetData() { GameDictionary.InitDic(); Player.Init(); }