Example #1
0
    // 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);
    }
Example #2
0
    // 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);
        //}
    }