Ejemplo n.º 1
0
 // game version 0-9999
 public void StartWithNewSeed(uint gameVersion)
 {
     gameVersion     = (uint)Mathf.Clamp(gameVersion, 0, 9999);
     Encrypter       = new SeedEncrypter(FullLengthSeed);
     Seed            = Encrypter.GetNewSeed(gameVersion);
     Random          = new Randomizer(Encrypter.ConvertSeedToInt(Seed));
     SeedGameVersion = gameVersion;
 }
Ejemplo n.º 2
0
 public void StartWithSeed(string seed)
 {
     if (string.IsNullOrEmpty(seed))
     {
         Debug.Log("Error: start with seed - is null or empty!");
         return;
     }
     Encrypter       = new SeedEncrypter(FullLengthSeed);
     Seed            = seed;
     Random          = new Randomizer(Encrypter.ConvertSeedToInt(seed));
     SeedGameVersion = Encrypter.GetVersion(seed);
 }