Пример #1
0
 public static Sington GetInstance()
 {
     if (_instance == null)
     {
         GameObject obj = new GameObject();
         _instance = obj.AddComponent <Sington>();
     }
     return(_instance);
 }
Пример #2
0
 void Awake()
 {
     _instance = this;
 }