// Use this for initialization void Start() { animationControler = gameObject.GetComponent <AnimationControler>(); cityControler = gameObject.GetComponent <CityControler>(); stoped = false; distanceControler = gameObject.GetComponent <DistanceControler>(); }
// 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>(); }