Пример #1
0
 // Use this for initialization
 void Start()
 {
     animationControler = gameObject.GetComponent <AnimationControler>();
     cityControler      = gameObject.GetComponent <CityControler>();
     stoped             = false;
     distanceControler  = gameObject.GetComponent <DistanceControler>();
 }
Пример #2
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>();
 }