Example #1
0
    void Awake()
    {
        cameraChangeCount = 5;

        carCamera   = GetComponent <RCCCarCamera>();
        orbitScript = GetComponent <RCCCameraOrbit>();

        if (mainFixedCamera)
        {
            fixedCamScript = mainFixedCamera.GetComponent <RCCMainFixedCam>();
        }
    }
Example #2
0
    void Start()
    {
        cameraChangeCount = 0;

        carCamera = GetComponent <RCCCarCamera>();
        target    = carCamera.playerCar;

        if (GetComponent <RCCCameraOrbit>())
        {
            orbitScript = GetComponent <RCCCameraOrbit>();
        }
        else
        {
            orbitScript = gameObject.AddComponent <RCCCameraOrbit>();
        }
    }
Example #3
0
    void Start()
    {
        cameraChangeCount = 0;

        carCamera = GetComponent<RCCCarCamera>();
        target = carCamera.playerCar;

        if(GetComponent<RCCCameraOrbit>())
            orbitScript = GetComponent<RCCCameraOrbit>();
        else
            orbitScript = gameObject.AddComponent<RCCCameraOrbit>();
    }