Exemple #1
0
 void Awake()
 {
     if (instance == null || instance.Equals(null))
     {
         instance = this;
     }
     else
     {
         Destroy(this);
     }
 }