Пример #1
0
 public IEnumerator startReracing(float delay, MyCarPoint mycarpoint, GameObject carobject, Vector3 nowposition, Vector3 nextposition)
 {
     yield return new WaitForSeconds(delay);
     setPointPosition (carobject, nowposition, nextposition);
     mycarpoint.fadeOut();
 }
Пример #2
-1
 private void backPoint(MyCarPoint mycarpoint, GameObject carobject, Vector3 nowposition, Vector3 nextposition)
 {
     mycarpoint.fadeIn();
     GetComponent<AudioSource>().Play();
     StartCoroutine(startReracing(1.0f, mycarpoint, carobject, nowposition, nextposition));
 }