コード例 #1
0
        private void resetLocomotionState()
        {
            GameObject localPlayerGameObject = SceneRefs.ZoneLocalPlayerManager.LocalPlayerGameObject;

            if (localPlayerGameObject != null)
            {
                LocomotionController currentController = LocomotionHelper.GetCurrentController(localPlayerGameObject);
                if (currentController != null)
                {
                    currentController.ResetState();
                }
            }
        }
コード例 #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();
        }