LLL
This commit is contained in:
@@ -15,17 +15,8 @@ public class CarLoader : MonoBehaviour
|
||||
public GameObject targetcar;
|
||||
void Start()
|
||||
{
|
||||
try
|
||||
{
|
||||
carType = GameObject.Find("Car Data").GetComponent<CarData>().carType;
|
||||
carColor = GameObject.Find("Car Data").GetComponent<CarData>().carColor;
|
||||
}
|
||||
catch (System.Exception)
|
||||
{
|
||||
carType = "Racecar";
|
||||
carColor = "Default";
|
||||
print("no loading");
|
||||
}
|
||||
carType = GameObject.Find("Car Data").GetComponent<CarData>().carType;
|
||||
carColor = GameObject.Find("Car Data").GetComponent<CarData>().carColor;
|
||||
|
||||
foreach (GameObject car in Cars)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user