// Use this for initialization void Start() { cameraController = GetComponent<CameraController>(); follow = GetComponent<Follow>(); freeForm = GetComponent<FreeForm>(); followDisabled = !follow.follow; }
// 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(); }
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; } }
void Start() { cc = GetComponent<CameraController>(); }
void Start() { cc = GetComponent<CameraController>(); ff = GetComponent<FreeForm>(); }