Beispiel #1
0
 public void Awake()
 {
     if (instance)
     {
         Destroy(instance);
     }
     instance = this;
 }
Beispiel #2
0
 public void Awake()
 {
     DontDestroyOnLoad(this);
     instance = this;
 }