// 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>(); } }
// 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>(); } }