Exemplo n.º 1
0
 IEnumerator TurnToWaypoint(IWayPoint wp)
 {
     //  MDebug.Log("Turn to");
     yield return(new WaitForRotation(m_rotated.transform, M_Math.RotateToYFlat(m_rotated.transform.position, wp.GetPosition()), 0.35f));
     //  MDebug.Log("Rotated");
 }