Пример #1
0
 void Start()
 {
     _foodManager = PlayerInfo.GetComponent <FoodManagerScript>();
     for (int i = 0; i < FoodButtons.Length; i++) //Set the price and name on the buttons.
     {
         FoodButtons[i].transform.GetChild(0).GetComponent <Text>().text = FoodName[i].PadRight(20) + FoodPrice[i] + "$";
     }
 }
Пример #2
0
 void Start()
 {
     _applyButton = transform.GetChild(3).gameObject;
     _workButton  = transform.GetChild(4).gameObject;
     _workManager = PlayerInfoManager.GetComponent <WorkManagerScript>();
 }
Пример #3
0
 void Start()
 {
     _workManager    = PlayerInfoManager.GetComponent <WorkManagerScript>();
     _clockUI        = PlayerInfoManager.GetComponent <ClockUIScript>();
     _setJobLocation = PlayerInfoManager.GetComponent <SetJobLocationScript>();
 }