private void Awake() { RB = GetComponent <Rigidbody2D>(); motor = GetComponent <RacerMotor>(); //store camera rotation for reset in late update cameraRotation = carCamera.transform.rotation; }
private void Awake() { racer = GetComponent <Racer>(); motor = GetComponent <RacerMotor>(); PV = GetComponent <PhotonView>(); }