예제 #1
0
 /// <summary>
 /// Set the instance so this script can be easily found.
 /// </summary>
 void Awake()
 {
     if (instance == null)
     {
         instance = this;
         DontDestroyOnLoad(gameObject);
     }
 }
예제 #2
0
 /// <summary>
 /// Set the instance so this script can be easily found.
 /// </summary>
 void Awake()
 {
     if (instance == null) instance = this;
 }