Ejemplo n.º 1
0
 private void OnGameTimeDayChanged()
 {
     if (null != WorkerListViewMap)
     {
         foreach (KeyValuePair <SharedWorker, ListViewElementWorker> pair in WorkerListViewMap)
         {
             pair.Value.Text.text = UIWorkers.GetWorkerListViewElementText(pair.Key);
         }
     }
 }
        private void OnWorkerSalaryChanged(SharedWorker companyWorker)
        {
            if (null != SelectedWorker && companyWorker.ID == SelectedWorker.ID)
            {
                TextSalary.text = UIWorkers.GetWorkerSalaryString(companyWorker);
            }

            ListViewElementWorker elem = null;

            if (companyWorker is LocalWorker)
            {
                elem = UIWorkers.GetWorkerListViewElement(companyWorker, ListViewCompanyWorkers);
            }
            else
            {
                elem = UIWorkers.GetWorkerListViewElement(companyWorker, ListViewOtherPlayersWorkers);
            }

            elem.Text.text = UIWorkers.GetWorkerListViewElementText(companyWorker);
        }
Ejemplo n.º 3
0
        private void OnWorkerSalaryChanged(SharedWorker companyWorker)
        {
            ListViewElementWorker el = WorkerListViewMap[companyWorker];

            el.Text.text = UIWorkers.GetWorkerListViewElementText(companyWorker);
        }