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