void Start() { if (!playerInput) { playerInput = gameObject.GetComponent<PlayerInput>(); } if (!attachToSurface) { attachToSurface = gameObject.GetComponent<AttachToSurface>(); } }
void Start() { if (!playerInput) { playerInput = gameObject.GetComponent <PlayerInput>(); } if (!attachToSurface) { attachToSurface = gameObject.GetComponent <AttachToSurface>(); } }
// Use this for initialization void Start() { Screen.lockCursor = true; if (!cameraControl) { cameraControl = gameObject.GetComponent<CameraControl>(); } if (!attachToSurface) { attachToSurface = gameObject.GetComponent<AttachToSurface>(); } if (!jetPackStabilize) { jetPackStabilize = gameObject.GetComponent<JetPackStabilize>(); } }
void Start() { if (!playerInput) { playerInput = gameObject.GetComponent<PlayerInput>(); } if (!playerCamera) { playerCamera = Camera.main.transform; } if (!attachToSurface) { attachToSurface = gameObject.GetComponent<AttachToSurface>(); } if (cameraMode == 1) playerCamera.parent = null; }
// Use this for initialization void Start() { Screen.lockCursor = true; if (!cameraControl) { cameraControl = gameObject.GetComponent <CameraControl>(); } if (!attachToSurface) { attachToSurface = gameObject.GetComponent <AttachToSurface>(); } if (!jetPackStabilize) { jetPackStabilize = gameObject.GetComponent <JetPackStabilize>(); } }
void Start() { if (!playerInput) { playerInput = gameObject.GetComponent <PlayerInput>(); } if (!attachToSurface) { attachToSurface = gameObject.GetComponent <AttachToSurface>(); } if (!playerCamera) { playerCamera = Camera.main.transform; } pidControllerX = new PIDController(pGainX, iGainX, dGainX); pidControllerY = new PIDController(pGainY, iGainY, dGainY); pidControllerZ = new PIDController(pGainZ, iGainZ, dGainZ); }
void Start() { if (!playerInput) { playerInput = gameObject.GetComponent <PlayerInput>(); } if (!playerCamera) { playerCamera = Camera.main.transform; } if (!attachToSurface) { attachToSurface = gameObject.GetComponent <AttachToSurface>(); } if (cameraMode == 1) { playerCamera.parent = null; } }
void Start() { if (!playerInput) { playerInput = gameObject.GetComponent<PlayerInput>(); } if (!attachToSurface) { attachToSurface = gameObject.GetComponent<AttachToSurface>(); } if (!playerCamera) { playerCamera = Camera.main.transform; } pidControllerX = new PIDController(pGainX, iGainX, dGainX); pidControllerY = new PIDController(pGainY, iGainY, dGainY); pidControllerZ = new PIDController(pGainZ, iGainZ, dGainZ); }