void TryToTeachSkills() { float start = Time.time * 1000; //Debug.Log("time start " + start.ToString()); if (mTimeToTeach > learnTick) { //Debug.Log("Trying to teach : " + mSkills.Count); foreach (SKILLS skill in mSkills) { List <Unit> ignorants = mGroupe.GetIgnorants(skill); Debug.Log(ignorants.ToString()); foreach (Unit unit in ignorants) { unit.TryToLearnSkill(skill); } } mTimeToTeach = 0; } float end = Time.time * 1000; //Debug.Log("time spent in Try to teach : " + (end - start).ToString()); }