Beispiel #1
0
 void Start()
 {
     pathControler      = gameObject.GetComponent <PathControler>();
     cityControler      = gameObject.GetComponent <CityControler>();
     acoControler       = gameObject.GetComponent <AcoControler>();
     animationControler = gameObject.GetComponent <AnimationControler>();
     dataInit();
     ui = player.GetComponent <PlayerUiControler>();
 }
 // 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>();
 }