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