Esempio n. 1
0
 // Use this for initialization
 void Start()
 {
     routine   = GetComponent <WorkerRoutine>();
     stats     = GetComponent <WorkerStats>();
     anim      = GetComponent <WorkerAnimationManager>();
     path      = GetComponent <PathFinding>();
     inventory = GameObject.FindWithTag("GameManager").GetComponent <TotalInventory>();
 }
Esempio n. 2
0
 // Use this for initialization
 void Start()
 {
     routine                = GetComponent <WorkerRoutine>();
     stats                  = GetComponent <WorkerStats>();
     anim                   = GetComponent <WorkerAnimationManager>();
     path                   = GetComponent <PathFinding>();
     taskInitiated          = false;
     constructionInProgress = false;
 }