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; }
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; }