Exemple #1
0
 private void OnReplay(CManagerReplay.EReplayState eState)
 {
     if (eState == CManagerReplay.EReplayState.Replaying)
     {
         transform.position = vecOriginPos;
         rb2d.velocity      = new Vector2(GameControl.instance.scrollSpeed, 0);
     }
 }
Exemple #2
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;
        }
    }
Exemple #3
0
 protected virtual void OnChange_ReplayState(CManagerReplay.EReplayState eReplayState)
 {
 }