示例#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;
     }
 }