public void CreateGO(GameObject gg) // Создать здание { if (gg.GetComponent <Building>().CostResouces()) { posT = 0; create = true; _target = Instantiate(gg, Vector3.zero, Quaternion.identity).GetComponent <Building>(); _target.Create(); Menu.BuildInterface(); } }