Exemplo n.º 1
0
 // Use this for initialization
 void Start()
 {
     animationControler = gameObject.GetComponent <AnimationControler>();
     cityControler      = gameObject.GetComponent <CityControler>();
     stoped             = false;
     distanceControler  = gameObject.GetComponent <DistanceControler>();
 }
Exemplo n.º 2
0
 void Start()
 {
     pathControler      = gameObject.GetComponent <PathControler>();
     cityControler      = gameObject.GetComponent <CityControler>();
     acoControler       = gameObject.GetComponent <AcoControler>();
     animationControler = gameObject.GetComponent <AnimationControler>();
     dataInit();
     ui = player.GetComponent <PlayerUiControler>();
 }
Exemplo n.º 3
0
 // Use this for initialization
 void Start()
 {
     timeLeft          = lengthOfAnimation;
     cityControler     = gameObject.GetComponent <CityControler>();
     acoControler      = gameObject.GetComponent <AcoControler>();
     pathControler     = gameObject.GetComponent <PathControler>();
     pheromons         = null;
     antPefab          = Resources.Load <GameObject>("CityTestScene/Prefab/Ant");
     distanceControler = gameObject.GetComponent <DistanceControler>();
 }
Exemplo n.º 4
0
 // Use this for initialization
 void Start()
 {
     cityControler = gameObject.GetComponent <CityControler>();
     c_            = new Color(1, 0, 0, 1);
 }
Exemplo n.º 5
0
 // Use this for initialization
 void Start()
 {
     cc = GetComponent <CityControler>();
 }