public override void OnStartLocalPlayer() { base.OnStartLocalPlayer(); // Set up local player input if we're the local player _inputController = gameObject.AddComponent<InputController>(); // Attach camera to the player's ship var sphereCamera = FindObjectOfType<SphereCamera>(); // Find the key debug view to pass to the input controller var inputDebugView = FindObjectOfType<InputDebugView>(); _inputController.Initialize(sphereCamera, _cameraFollow, inputDebugView); _inputController.SetMouseSensitivity(CAMERA_ROTATION_MOUSE_SENSITIVITY); // Instantiate a rewind-replay log for this entity, since its the local player we would like to perform state-prediction _rewindReplayLog = new RewindReplayLog<PlayerInput>(); }