Пример #1
0
 private void Awake()
 {
     if (instant != null)
     {
         return;
     }
     instant = this;
 }
Пример #2
0
 // Use this for initialization
 void Start()
 {
     BM        = BuildManeger.instant;
     ShopUI    = GameObject.FindGameObjectWithTag("ShopTag");
     UpgradeUI = GameObject.FindGameObjectWithTag("Upgrade");
 }