Esempio n. 1
0
 // run params constructor
 public RunParameters(RunModifiers _firstMod, int _firstRoom, RunModifiers _secondMod = default, int _secondRoom = default)
 {
     firstMod   = _firstMod;
     firstRoom  = _firstRoom;
     secondMod  = _secondMod;
     secondRoom = _secondRoom;
 }
Esempio n. 2
0
 public void GE_GenerateNewRun()
 {
     System.Random rnd = new System.Random();
     firstMod  = (RunModifiers)rnd.Next();
     firstRoom = rnd.Next(1, 4); //equal 25% chance
 }