Inheritance: UnityEngine.MonoBehaviour
Esempio n. 1
0
 protected void Awake()
 {
     try
     {
         if (instance == null)
         {
             DontDestroyOnLoad(this);
             instance     = this;
             this.enabled = false;
             return;
         }
         Destroy(this);
     }
     catch (Exception ex)
     {
         MyLogger.Exception(ex);
     }
 }
Esempio n. 2
0
 protected void Awake()
 {
     try
     {
         if (instance == null)
         {
             DontDestroyOnLoad(this);
             instance = this;
             this.enabled = false;
             return;
         }
         Destroy(this);
     }
     catch (Exception ex)
     {
         MyLogger.Exception(ex);
     }
 }