Exemple #1
0
 void Awake()
 {
     if (Instance == null)
     {
         create = true;
         panel  = canvas.transform.Find("SignIn").gameObject;
         panel.SetActive(true);
         DontDestroyOnLoad(gameObject);
         Instance = this;
     }
     else if (Instance != this)
     {
         Instance.backMenu();
         Destroy(gameObject);
     }
 }