public void LoadLoggedRandomizationSeed(string[] arsSplitLogs) { Debug.Assert(arsSplitLogs[0] == "rs"); int nRandomizationSeed; if (int.TryParse(arsSplitLogs[1], out nRandomizationSeed) == false) { Debug.LogErrorFormat("Error! {0} was not a valid randomization seed to be loaded", arsSplitLogs[1]); return; } NetworkMatchSetup.SetRandomizationSeed(nRandomizationSeed); }
public void InitRandomization() { //Attempt to set the randomization seed (we'll only succeed if we're the master, but we should still try) NetworkMatchSetup.SetRandomizationSeed(Random.Range(0, 1000000)); }