private void Awake() { if (instant != null) { return; } instant = this; }
// Use this for initialization void Start() { BM = BuildManeger.instant; ShopUI = GameObject.FindGameObjectWithTag("ShopTag"); UpgradeUI = GameObject.FindGameObjectWithTag("Upgrade"); }