コード例 #1
0
 /*This script changes the position of the player */
 public void OnTriggerEnter(Collider other)
 {
     if (other.GetComponent <Collider>().tag == "Player")
     {
         RaceController.ChangePosition(gameObject, other.gameObject);
     }
 }