protected override void OnForkStopAction() { base.OnForkStopAction(); ForkEffect componentInChildren = forkChar.GetComponentInChildren <ForkEffect>(); componentInChildren.Velocity = Vector3.zero; componentInChildren.Grounded = true; }
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; }