Ejemplo n.º 1
0
 // Start is called before the first frame update
 void Start()
 {
     _gasController    = GasController.Instance;
     _remController    = RemController.Instance;
     _carController    = CarController.Instance;
     _carBody          = CarBodyScript.Instance;
     _groundController = GroundController.Instance;
     GameOverPanel.SetActive(false);
     FinishPanel.SetActive(false);
 }
Ejemplo n.º 2
0
 private void Awake()
 {
     if (_instance != null && _instance != this)
     {
         Destroy(this.gameObject);
     }
     else
     {
         _instance = this;
     }
 }