Пример #1
0
 private void Start()
 {
     if (instance == null || instance.Equals(this))
     {
         instance = this;
         DontDestroyOnLoad(this);
     }
     else
     {
         Destroy(this);
     }
 }