public void initializeWorker(path_point WP) { retreat = false; targetWP = WP; targetRessource = WP.GetComponent<ressource>(); currentPath = WP.path_to_base; currentPointInPath = 1; animator.SetBool("isrunning", true); GameObject.Find ("ui_manager").GetComponent<ui_manager>().refresh_ressource_ui(); GameObject.Find ("ui_manager").GetComponent<ui_manager>().refresh_ressource_ui_slots(); }
public void initializeWorker(path_point WP) { retreat = false; targetWP = WP; targetRessource = WP.GetComponent <ressource>(); currentPath = WP.path_to_base; currentPointInPath = 1; animator.SetBool("isrunning", true); GameObject.Find("ui_manager").GetComponent <ui_manager>().refresh_ressource_ui(); GameObject.Find("ui_manager").GetComponent <ui_manager>().refresh_ressource_ui_slots(); }