void Awake() { cameraChangeCount = 5; carCamera = GetComponent <RCCCarCamera>(); orbitScript = GetComponent <RCCCameraOrbit>(); if (mainFixedCamera) { fixedCamScript = mainFixedCamera.GetComponent <RCCMainFixedCam>(); } }
void Start() { cameraChangeCount = 0; carCamera = GetComponent <RCCCarCamera>(); target = carCamera.playerCar; if (GetComponent <RCCCameraOrbit>()) { orbitScript = GetComponent <RCCCameraOrbit>(); } else { orbitScript = gameObject.AddComponent <RCCCameraOrbit>(); } }
void Start() { cameraChangeCount = 0; carCamera = GetComponent<RCCCarCamera>(); target = carCamera.playerCar; if(GetComponent<RCCCameraOrbit>()) orbitScript = GetComponent<RCCCameraOrbit>(); else orbitScript = gameObject.AddComponent<RCCCameraOrbit>(); }