コード例 #1
0
        IEnumerator LoadReplayFromPath(string path)
        {
            ReplayManager.CurrentState = ReplayState.LoadingReplay;
            yield return(ReplayData.LoadFromFile(path));

            ReplayManager.CurrentState = ReplayState.Playback;
        }
コード例 #2
0
        private void Save()
        {
            ReplayManager.CurrentState = ReplayState.SavingReplay;
            var replayData = new ReplayData();

            replayData.SaveToFile(Main.settings.ReplaysDirectory + "\\" + this.fileName);
            ReplayManager.CurrentState = ReplayState.MainMenu;
        }