public static bool UpdateTAS() { HandleFrameRates(); CheckControls(); FrameStepping(); if (HasFlag(tasState, TASState.Enable) && !isSuspended) { if (HasFlag(tasState, TASState.Record) || HasFlag(tasState, TASState.Rerecord)) { player.RecordPlayer(); } else { player.PlaybackPlayer(); if (!player.CanPlayback) { DisableRun(); } return(true); } } return(false); }
public static bool UpdateTAS() { if (Characters.Sein != null) { oriPostion = Characters.Sein.Position; UpdateColors(); } else { oriPostion = Vector3.zero; } UpdateText(); UpdateExtraInfo(); HandleFrameRates(); CheckControls(); FrameStepping(); if (SkillTreeManager.Instance != null && SkillTreeManager.Instance.NavigationManager.IsVisible) { if (!player.HasChangedAlpha) { SkillTreeManager.Instance.NavigationManager.FadeAnimator.SetParentOpacity((float)player.SkillTreeAlpha / 100f); player.HasChangedAlpha = true; } UberPostProcess.Instance.SetDoBlur(player.SkillTreeAlpha == 100); } if (HasFlag(tasState, TASState.Enable)) { if (HasFlag(tasState, TASState.Record) || HasFlag(tasState, TASState.Rerecord)) { player.RecordPlayer(); } else { player.PlaybackPlayer(); if (!player.CanPlayback) { DisableRun(); } if (!InstantLoadScenesController.Instance.IsLoading && !GameController.Instance.IsLoadingGame && player.Break < 0) { tasState |= TASState.FrameStep; player.Break = 0; SetFrameRate(60); } return(true); } } return(false); }