//public Camera cameraPrincipale; // Use this for initialization void Start() { rb = GetComponent <Rigidbody>(); inputForward = new Vector3(0, 0, 1f); isSlideIsPlaying = false; scriptMusic = music.GetComponent <AudioScript>(); scriptSlide = slide.GetComponent <AudioScript>(); scriptSounds = sounds.GetComponent <AudioScript>(); scriptMusic.jouerSon(AudioScript.Sons.music, true); isDead = false; score = transform.GetComponent <Score>(); liquide = transform.GetComponent <PhysiqueLiquide>(); lastCheckpoint = depart; rotationDebut = transform.rotation; //cameraController = cameraPrincipale.GetComponent<CameraController>(); cameraCheckPoint.enabled = false; cameraChoppe.enabled = false; cameraStart.enabled = true; rb.isKinematic = true; StartCoroutine(changerCameraDeStartVersChoppe()); }
// Use this for initialization void Start() { physiqueLiquide = choppe.GetComponent <PhysiqueLiquide>(); }