Exemplo n.º 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--;
 }
Exemplo n.º 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--;
 }
Exemplo n.º 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();
 }
Exemplo n.º 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>();
 }