// 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); }
private void Awake() { if (_instance != null && _instance != this) { Destroy(this.gameObject); } else { _instance = this; } }