private void setupCameras()
 {
     mainCamera       = GameObject.FindWithTag("MainCamera").camera;
     projectileCamera = GetComponentInChildren <ProjectileCamera>() as ProjectileCamera;
     //if (networkView.isMine){
     mainCamera.GetComponent <CamSmoothFollow>().target = vehicleController.CenterOfMass;
     //}
 }
 void getCameras()
 {
     mainCamera = GameObject.FindWithTag("MainCamera").camera;
     mapCamera = GameObject.FindWithTag("MapCamera").camera;
     projectileCamera = GetComponentInChildren<ProjectileCamera>() as ProjectileCamera;
 }
 private void setupCameras()
 {
     mainCamera = GameObject.FindWithTag("MainCamera").camera;
     projectileCamera = GetComponentInChildren<ProjectileCamera>() as ProjectileCamera;
     //if (networkView.isMine){
     mainCamera.GetComponent<CamSmoothFollow>().target = vehicleController.CenterOfMass;
     //}
 }
Example #4
0
 void getCameras()
 {
     mainCamera       = GameObject.FindWithTag("MainCamera").camera;
     mapCamera        = GameObject.FindWithTag("MapCamera").camera;
     projectileCamera = GetComponentInChildren <ProjectileCamera>() as ProjectileCamera;
 }