public void CompletedAllTutorials()
 {
     explanationText.text = "";
     //LevelManager.Instance.SetTutorialFinished();
     instance = null;
     transform.gameObject.SetActive(false);
 }
Example #2
0
 private void Awake()
 {
     if (instance != null)
     {
         Destroy(this.gameObject);
     }
     else
     {
         instance = this;
     }
 }
Example #3
0
 void Awake()
 {
     curr_gameflow = this;
     if (main == null)
     {
         main = this;
     }
     else
     {
         Destroy(this);
     }
 }
Example #4
0
    // Singleton structure
    private void Awake()
    {
        GameStarted = false;
        GameEnded   = false;
        if (GFM == null)
        {
            GFM = this;
            DontDestroyOnLoad(this.gameObject);
        }
        else
        {
            if (GFM != null)
            {
                Destroy(GFM.gameObject);
            }
        }

        PV = GetComponent <PhotonView>();
    }