Example #1
0
 private void Start()
 {
     population   = FindObjectOfType <PopulationManager>().GetComponent <PopulationManager>();
     c_stats      = GetComponent <HumanCurrentStats>();
     growth       = GetComponent <HumanGrowth>();
     audioManager = FindObjectOfType <AudioManager>().GetComponent <AudioManager>();
 }
Example #2
0
 // Use this for initialization
 void Start()
 {
     foods          = FindObjectOfType <FoodManager>().GetComponent <FoodManager>();
     shop           = FindObjectOfType <ShopManager>().GetComponent <ShopManager>();
     repopulate     = GetComponent <HumanRepopulate>();
     c_Stats        = GetComponent <HumanCurrentStats>();
     growth         = GetComponent <HumanGrowth>();
     audioManager   = FindObjectOfType <AudioManager>().GetComponent <AudioManager>();
     agent          = GetComponent <NavMeshAgent>();
     eatTimer       = h_Cooldown;
     h_Recovery    += shop.s_hungerIncrease;
     seesFoodRange += shop.s_h_sightRangeIncrease;
     canEat         = false;
     destinationSet = false;
     FoodNearBy();
 }
Example #3
0
 // Use this for initialization
 void Start()
 {
     rend    = GetComponent <Renderer>();
     c_Stats = GetComponentInParent <HumanCurrentStats>();
     growth  = GetComponentInParent <HumanGrowth>();
 }