예제 #1
0
 public void initializeScout(path_point WP)
 {
     targetWP           = WP;
     currentPath        = WP.path_to_base;
     currentPointInPath = 1;
     animator.SetBool("isrunning", true);
     baseManager.bought_scout_ants--;
 }
예제 #2
0
 public void initializeScout(path_point WP)
 {
     targetWP = WP;
     currentPath = WP.path_to_base;
     currentPointInPath = 1;
     animator.SetBool("isrunning", true);
     baseManager.bought_scout_ants--;
 }
예제 #3
0
 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();
 }
예제 #4
0
 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>();
 }