コード例 #1
0
        protected override void PopFromStack(IRewindStatus obj)
        {
            anim.Continue();
            FirstPersonRewindStatus personRewindStatus = obj.Cast <FirstPersonRewindStatus>();

            transform.localPosition = personRewindStatus.position;
            transform.localRotation = personRewindStatus.rotation;
            anim.Velocity           = personRewindStatus.animationVelocity;
            anim.Grounded           = personRewindStatus.grounded;
        }
コード例 #2
0
        protected override void ForkStatus(IRewindStatus obj)
        {
            FirstPersonRewindStatus personRewindStatus = (FirstPersonRewindStatus)obj;
            ForkEffect          componentInChildren    = forkChar.GetComponentInChildren <ForkEffect>();
            ForkCharacterAction component = forkChar.GetComponent <ForkCharacterAction>();

            componentInChildren.Grounded     = personRewindStatus.grounded;
            componentInChildren.Velocity     = personRewindStatus.animationVelocity;
            forkChar.transform.position      = personRewindStatus.position;
            forkChar.transform.rotation      = personRewindStatus.rotation;
            component.currentInteractiveItem = personRewindStatus.currentItem;
            component.IsCarrying             = personRewindStatus.isCarrying;
            component.CameraRay = personRewindStatus.cameraRay;
        }