Exemple #1
0
 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;
 }
Exemple #2
0
 void Start()
 {
     if (!GameDictionary.IsInit)
     {
         GameDictionary.InitDic();
     }
     MyRecordUI.Init();
     Start_Title.text = GameDictionary.String_UIDic["Start"].GetString(Player.UseLanguage);
 }
Exemple #3
0
 /// <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();
 }
Exemple #4
0
 void Awake()
 {
     if (!Debugger.IsSpawn)
     {
         DeployDebugger();
     }
     if (!GameDictionary.IsInit)
     {
         GameDictionary.InitDic();
     }
     IsRevived          = false;
     IsPause            = false;
     CanPressSettingBtn = true;
     MySelf             = transform.GetComponent <BattleManager>();
     HideBounceWall();
     SetNormanWall();
     StartGame();
 }
Exemple #5
0
 void SetData()
 {
     GameDictionary.InitDic();
     Player.Init();
 }