コード例 #1
0
 private void Update()
 {
     if (Wrota.GetComponent <WyjazdGaraz>().GetKoniec())
     {
         Car.transform.rotation = Quaternion.identity;
         Car.transform.position = new Vector3(0, 0.5f, 0);
         SceneManager.LoadScene("Clients");
     }
     ;
 }
コード例 #2
0
    public void toGame()
    {
        Wrota.GetComponent <WyjazdGaraz>().SetOpen();
        Car.GetComponent <CarTuning>().FrontBumperId = FBO;
        Car.GetComponent <CarTuning>().RearBumperId  = RBO;
        Car.GetComponent <CarTuning>().WheelId       = WO;
        Car.GetComponent <CarTuning>().EngineId      = EO;

        Car.GetComponent <CarController>().enabled   = false;
        Car.GetComponent <CarUserControll>().enabled = false;
        Car.GetComponent <CarAudio>().enabled        = false;
        Car.GetComponent <CarTuning>().rotateCar     = false;
        Car.transform.rotation = Quaternion.identity;
        Car.GetComponent <CarTuning>().UpdateOnce();
        Car.GetComponent <CarTuning>().enabled = false;
        caly.GetComponent <Canvas> ().enabled  = false;
        Alert.enabled = false;
    }