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