Esempio n. 1
0
 // Use this for initialization
 void Start()
 {
     agentLogic = GetComponentInParent<AgentLogic_07>();
     stateIcon.sprite = Resources.Load<Sprite>("AgentIcons/default_icon");
 }
 void resetJoblists(AgentLogic_07.jobSubState oldState)
 {
     if (oldState == AgentLogic_07.jobSubState.Farmer) {
         _gameController.farmerList.Remove(this.gameObject);
     }
     if (oldState == AgentLogic_07.jobSubState.PowerWorker) {
         _gameController.powerWorkerList.Remove(this.gameObject);
     }
     if (oldState == AgentLogic_07.jobSubState.Hydrologist) {
         _gameController.waterWorkerList.Remove(this.gameObject);
     }
 }
Esempio n. 3
0
 // Use this for initialization
 void Start()
 {
     agentLogic       = GetComponentInParent <AgentLogic_07>();
     stateIcon.sprite = Resources.Load <Sprite>("AgentIcons/default_icon");
 }