private void resetLocomotionState() { GameObject localPlayerGameObject = SceneRefs.ZoneLocalPlayerManager.LocalPlayerGameObject; if (localPlayerGameObject != null) { LocomotionController currentController = LocomotionHelper.GetCurrentController(localPlayerGameObject); if (currentController != null) { currentController.ResetState(); } } }
public override void OnEnter() { GameObject localPlayerGameObject = SceneRefs.ZoneLocalPlayerManager.LocalPlayerGameObject; if (localPlayerGameObject != null) { LocomotionController currentController = LocomotionHelper.GetCurrentController(localPlayerGameObject); if (currentController != null) { currentController.ResetState(); } } Finish(); }