Ejemplo n.º 1
0
 void Awake()
 {
     if (Instance != null)
     {
         Debug.Log("FadeInScene is already in play. Deleting old Instantiating new.");
         Destroy(gameObject);
     }
     else
         Instance = this;
 }
Ejemplo n.º 2
0
 void Awake()
 {
     if (Instance != null)
     {
         Debug.Log("FadeInScene is already in play. Deleting old Instantiating new.");
         Destroy(gameObject);
     }
     else
     {
         Instance = this;
     }
 }