Exemplo n.º 1
0
        private void resetLocomotionState()
        {
            GameObject localPlayerGameObject = SceneRefs.ZoneLocalPlayerManager.LocalPlayerGameObject;

            if (localPlayerGameObject != null)
            {
                LocomotionController currentController = LocomotionHelper.GetCurrentController(localPlayerGameObject);
                if (currentController != null)
                {
                    currentController.ResetState();
                }
            }
        }
Exemplo n.º 2
0
        public override void OnEnter()
        {
            GameObject localPlayerGameObject = SceneRefs.ZoneLocalPlayerManager.LocalPlayerGameObject;

            if (localPlayerGameObject != null)
            {
                LocomotionController currentController = LocomotionHelper.GetCurrentController(localPlayerGameObject);
                if (currentController != null)
                {
                    currentController.ResetState();
                }
            }
            Finish();
        }