IEnumerator LoadReplayFromPath(string path) { ReplayManager.CurrentState = ReplayState.LoadingReplay; yield return(ReplayData.LoadFromFile(path)); ReplayManager.CurrentState = ReplayState.Playback; }
private void Save() { ReplayManager.CurrentState = ReplayState.SavingReplay; var replayData = new ReplayData(); replayData.SaveToFile(Main.settings.ReplaysDirectory + "\\" + this.fileName); ReplayManager.CurrentState = ReplayState.MainMenu; }