public bool BuildBase() { Base newBase = new Base(this); if (AllowedPay(newBase)) { BaseBuildings.Add(newBase); return(true); } return(false); }
public IEnumerator LoadDelayer() { float remainingTime = 1.5f; while (remainingTime > 0) { yield return(null); remainingTime -= Time.deltaTime; } if (isLocalPlayer) { team = GetComponent <PlayerTeam>(); gun = GetComponent <GunController>(); buildMode = false; baseParent = team.baseObject.transform; baseBuildings = team.baseObject.GetComponent <BaseBuildings>(); } }