GUIStyle improvements & some simple UI graphics, networking bugfixes, separate Random class, some StyleCop cleanup

This commit is contained in:
Regalis
2015-07-02 22:24:50 +03:00
parent b493ed2b39
commit d836a99515
119 changed files with 8842 additions and 1277 deletions
+2 -2
View File
@@ -125,7 +125,7 @@ namespace Subsurface
i++;
}
float randomNumber = (float)Game1.random.NextDouble() * probabilitySum;
float randomNumber = Rand.Range(0.0f,probabilitySum);
i = 0;
foreach (XElement element in doc.Root.Elements())
@@ -169,7 +169,7 @@ namespace Subsurface
{
isStarted = false;
isFinished = false;
startTimer = Game1.random.Next(startTimeMin, startTimeMax);
startTimer = Rand.Range(startTimeMin, startTimeMax, false);
}
protected virtual void Start()