Esempio n. 1
0
 private void Start()
 {
     if (!DMMain.isJustOnce)
     {
         DMMain.isJustOnce = true;
         AdjustWrapper.Instance.StartAdjust();
         AlertMaster.Initialize();
         StringMaster.Initialize();
         FirebaseMessaging.TokenReceived   += this.OnTokenReceived;
         FirebaseMessaging.MessageReceived += this.OnMessageReceived;
     }
     GUIMain.StartupScreen("UIStartupCaution");
 }
    private void Awake()
    {
        this.battleStateManager = UnityEngine.Object.FindObjectOfType <BattleStateManager>();
        if (BattleStateManager.onAutoServerConnect)
        {
            this.battleStateManager.BattleTrigger();
            UnityEngine.Object.Destroy(base.gameObject);
            return;
        }
        StringMaster.Initialize();
        GameObject gameObject = new GameObject("MasterDataMng");

        gameObject.AddComponent <MasterDataMng>();
    }