// Use this for initialization void Start() { anim = GetComponent <Animator>(); taskManager = GameObject.FindWithTag("GameManager").GetComponent <TaskManager>(); totalInventory = GameObject.FindWithTag("GameManager").GetComponent <TotalInventory>(); activeTask = null; }
// Use this for initialization void Start() { routine = GetComponent <WorkerRoutine>(); stats = GetComponent <WorkerStats>(); anim = GetComponent <WorkerAnimationManager>(); path = GetComponent <PathFinding>(); inventory = GameObject.FindWithTag("GameManager").GetComponent <TotalInventory>(); }
private void Start() { totalInventory = GameObject.FindWithTag("GameManager").GetComponent <TotalInventory>(); tagSelf = transform.tag; name = gameObject.name; }