Ejemplo n.º 1
0
 public void LaunchButt(GameObject targetCar)
 {
     location           = targetCar.transform.position;
     transform.position = location;
     if (AIScript = targetCar.gameObject.GetComponent <AIController>())
     {
         currentWaypoint         = AIScript.GetCurrentWaypointInt();
         AIScript.currentPowerup = null;
     }
     if (CarScript = targetCar.gameObject.GetComponent <CarController>())
     {
         currentWaypoint          = CarScript.GetCurrentWaypointInt();
         CarScript.currentPowerup = null;
     }
 }