static void GetInstance()
 {
     if (_instance == null)
     {
         _instance = Load("Alerts/FullLoginAlert", UIAlertController.Instance.CanvasRect) as FullLoginAlert;
     }
 }
    protected override void OnActivate()
    {
        base.OnActivate();

        if (!_loggedIn && !GameManager.Client)
        {
            _loggedIn = true;
            //Debug.Log("presenting login alert");
            //LoadingAlert.Present();

            /*
             * if (OnlineManager.Token == null || OnlineManager.Token == "")
             *  FullLoginAlert.Present();
             * else
             *  LoginAlert.Present();
             */

            // Application.ExternalCall("trySetToken");
            Application.ExternalEval("window.sendMeTheToken = true");
            FullLoginAlert.Present();
        }
        else if (GameManager.Client)
        {
            // after game replay
            LoadingAlert.Present();
            OnlineManager.Instance.SetServer();
            StartCoroutine(LogBackIn());
        }
        else
        {
            //DefaultAlert.Present(
        }

        BattleButton.Reset();
        StoreButton.Reset();
        StatsButton.Reset();
        SettingsButton.Reset();

        if (!_music)
        {
            _music = true;
            SoundManager.Instance.StartMenuMusic();
        }

        StoreRefreshButtonObj.SetActive(false);

        VersionText.Text = "Version " + VERSION;
    }