Ejemplo n.º 1
0
 public void PassiveUpdate(CompanyActionController controller)
 {
     timeDisplayer.text          = FormatTimeDisplay(src.company.ut, src.timeWarpMultiplier);
     warpDisplayer.text          = FormatTimeWarp(src.timeWarpMultiplier);
     fundDisplayer.text          = FormatFund(src.company.fund);
     reputationDisplayer.text    = FormatReputation(src.company.reputation);
     contractCountDisplayer.text = src.company.contracts.Count.ToString();
     employeeCountDisplayer.text = src.company.employees.Count.ToString();
 }
Ejemplo n.º 2
0
 public void Start()
 {
     src = src ?? gameObject.GetComponentInParent <CompanyActionController>();
     src.AfterCompanyUpdate += this.PassiveUpdate;
 }