示例#1
0
 void OnDestroy()
 {
     if (_instance == this)
     {
         _instance = null;
     }
 }
示例#2
0
 void Awake()
 {
     if (_instance != null)
     {
         Debug.LogError("FCDownloadManager: Another FCDownloadManager has already been created previously. " + gameObject.name + " is goning to be destroyed.");
         Destroy(this);
         return;
     }
     _instance = this;
     DontDestroyOnLoad(this);
 }
示例#3
0
    void OnChangeServerCallback(ID_BUTTON buttonID)
    {
        if (buttonID == ID_BUTTON.ID_OK)
        {
            FCDownloadManager.SaveServerSelected(false);

            CharacterSelector.IsForceToSelectServer = true;
            Application.LoadLevel("character_selection");

            _UIIsActive = false;
        }
    }