// Start is called before the first frame update void Start() { memoryStore = FindObjectOfType <ReplayMemoryStore>(); GameObject.DontDestroyOnLoad(memoryStore.gameObject); string replayBasePath = Path.Combine(Application.streamingAssetsPath, "Replays"); GetReplayPaths(replayBasePath); }
// Start is called before the first frame update void Awake() { memoryStore = FindObjectOfType <ReplayMemoryStore>(); creator = FindObjectOfType <GameCreator>(); creator.focusGameIndexOverride = FocusGame; creator.focusNextOverride = NextGame; creator.focusPrevOverride = PrevGame; //foreach(string path in replays) //{ // Debug.Log("Loaded Replay: " + path); //} }