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