/* Wait to get the path */ public IEnumerator wait() { yield return(new WaitForSeconds(0.1f)); path = mg.GetIAPath(); }