示例#1
0
 // Use this for initialization
 void Start()
 {
     anim           = GetComponent <Animator>();
     taskManager    = GameObject.FindWithTag("GameManager").GetComponent <TaskManager>();
     totalInventory = GameObject.FindWithTag("GameManager").GetComponent <TotalInventory>();
     activeTask     = null;
 }
示例#2
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>();
 }
示例#3
0
 private void Start()
 {
     totalInventory = GameObject.FindWithTag("GameManager").GetComponent <TotalInventory>();
     tagSelf        = transform.tag;
     name           = gameObject.name;
 }