public void initializeScout(path_point WP) { targetWP = WP; currentPath = WP.path_to_base; currentPointInPath = 1; animator.SetBool("isrunning", true); baseManager.bought_scout_ants--; }
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(); }
// Use this for initialization void Start() { targetWP = GetComponent<path_point>(); }
// Use this for initialization void Start() { targetWP = GetComponent <path_point>(); }