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