Example #1
0
 private void Awake()
 {
     if (instace == null)
     {
         instace = this;
         DontDestroyOnLoad(gameObject);
         setSeed(seed);
     }
     else
     {
         Destroy(this);
     }
 }
Example #2
0
 private void Awake()
 {
     seed = Random.Range(0, 2000000);
     if (instace == null)
     {
         instace = this;
         DontDestroyOnLoad(gameObject);
         setSeed(seed);
     }
     else
     {
         Destroy(this);
     }
 }