示例#1
0
 // Use this for initialization
 void Start()
 {
     cameraController = GetComponent<CameraController>();
     follow = GetComponent<Follow>();
     freeForm = GetComponent<FreeForm>();
     followDisabled = !follow.follow;
 }
示例#2
0
    // Use this for initialization
    void Start()
    {
        camController = followCam.GetComponent <ThirdPersonCamera.CameraController>();

        allThings = ThingManager.main.AllThings;

        if (allThings.Length < 1)
        {
            return;
        }
        AssignFollowTarget();

        InvokeRepeating("ChangeCamera", intervals, intervals);
        SetActiveCameras();
    }
示例#3
0
        public void Start()
        {
            cameraController = GetComponent<CameraController>();

            mouse0 = false;
            mouse1 = false;

            x = 0;
            y = 0;

            smartPivotInit = true;

            upVector = Vector3.up;
            downVector = Vector3.down;

            string platform = Application.platform.ToString().ToLower();

            if (platform.Contains("windows") || platform.Contains("linux"))
            {
                rightAxisXName = "Right_4";
                rightAxisYName = "Right_5";
            }
            else
            {
                rightAxisXName = "Right_3";
                rightAxisYName = "Right_4";
            }

            // test if the controller axis are setup
            try
            {
                Input.GetAxis(rightAxisXName);
                Input.GetAxis(rightAxisYName);
            }
            catch
            {
                Debug.LogWarning("Controller Error - Right axis not set in InputManager. Controller is disabled!");
                controllerEnabled = false;
            }
        }
示例#4
0
 void Start()
 {
     cc = GetComponent<CameraController>();
 }
示例#5
0
 void Start()
 {
     cc = GetComponent<CameraController>();
     ff = GetComponent<FreeForm>();
 }