예제 #1
0
 void OnTriggerEnter(Collider other)
 {
     if (other.tag == "Car" && !PlayerController.current.jumpComplete)
     {
         SpawnCar.Recycle(other.GetComponent <CarController>());
     }
 }
예제 #2
0
 public void RemoveOnSpawn(SpawnCar func)
 {
     OnSpawn -= func;
 }
예제 #3
0
 public void AddOnSpawn(SpawnCar func)
 {
     OnSpawn += func;
 }