L
This commit is contained in:
@@ -12,9 +12,6 @@ public class Garage : MonoBehaviour
|
||||
public Button RacecarButton;
|
||||
public GameObject RacecarGarage;
|
||||
public GameObject Racecar;
|
||||
public Button FordButton;
|
||||
public GameObject FordGarage;
|
||||
public GameObject Ford;
|
||||
public Button[] ColorButtons;
|
||||
public Material[] Colors;
|
||||
// Start is called before the first frame update
|
||||
@@ -22,7 +19,6 @@ public class Garage : MonoBehaviour
|
||||
{
|
||||
HotrodButton.onClick.AddListener(SelectHotrod);
|
||||
RacecarButton.onClick.AddListener(SelectRacecar);
|
||||
FordButton.onClick.AddListener(SelectFord);
|
||||
|
||||
ColorButtons[0].onClick.AddListener(SelectBlack);
|
||||
ColorButtons[1].onClick.AddListener(SelectBlue);
|
||||
@@ -51,7 +47,6 @@ public class Garage : MonoBehaviour
|
||||
{
|
||||
HotrodGarage.SetActive(false);
|
||||
RacecarGarage.SetActive(false);
|
||||
FordGarage.SetActive(false);
|
||||
}
|
||||
|
||||
void SelectHotrod()
|
||||
@@ -68,13 +63,6 @@ public class Garage : MonoBehaviour
|
||||
CurrentCar = Racecar;
|
||||
}
|
||||
|
||||
void SelectFord()
|
||||
{
|
||||
disable();
|
||||
enable(FordGarage);
|
||||
CurrentCar = Ford;
|
||||
}
|
||||
|
||||
void SelectBlack()
|
||||
{
|
||||
Material color = Colors[0];
|
||||
|
||||
Reference in New Issue
Block a user