void Start() { PlayerScript = gameObject.GetComponent<PlayerCompany>(); PlayerCo = PlayerScript.PlayerCo; CreateCompanyUI.SetActive(true); Player.SetActive(false); GameDevUI.SetActive(false); }
private void CreateCompany() { ControlledCompany = new PlayerCompany("", gameObject); ControlledCompany.WorkerAdded += OnControlledCompanyWorkerAdded; ControlledCompany.WorkerRemoved += OnControlledCompanyWorkerRemoved; ControlledCompany.BalanceChanged += OnControlledCompanyBalanceChanged; ControlledCompany.Balance = SimulationSettings.InitialBalance; }
public static string GetCompanyWorkersListViewString(PlayerCompany company) { return(string.Format("Company workers ({0} / {1})", company.Workers.Count, PlayerCompany.MAX_WORKERS_PER_COMPANY)); }