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