private void OnReplay(CManagerReplay.EReplayState eState) { if (eState == CManagerReplay.EReplayState.Replaying) { transform.position = vecOriginPos; rb2d.velocity = new Vector2(GameControl.instance.scrollSpeed, 0); } }
protected override void OnChange_ReplayState(CManagerReplay.EReplayState eReplayState) { base.OnChange_ReplayState(eReplayState); switch (eReplayState) { case CManagerReplay.EReplayState.Recording: _fPrevRecordTime = 0f; _pCommandExecuter.p_bEnableExecuter = true; break; case CManagerReplay.EReplayState.Replaying: case CManagerReplay.EReplayState.Replaying_Pause: _pCommandExecuter.p_bEnableExecuter = false; break; } }
protected virtual void OnChange_ReplayState(CManagerReplay.EReplayState eReplayState) { }