Exemple #1
0
 void Awake()
 {
     if (mInstance == null)
     {
         mInstance = this as CameraFade;
         instance.init();
     }
 }
Exemple #2
0
 void OnApplicationQuit()
 {
     mInstance = null;
 }
Exemple #3
0
 void Die()
 {
     mInstance = null;
     Destroy(gameObject);
 }