Beispiel #1
0
 public static void OnLoad()
 {
     PUtil.InitLibrary();
     PLocalization.Register();
     VLib.Register();
     POptions.RegisterOptions(typeof(Settings));
     Settings.Init(POptions.ReadSettings <Settings>());
 }
Beispiel #2
0
 public override void OnLoad(Harmony harmony)
 {
     base.OnLoad(harmony);
     PUtil.InitLibrary();
     new PLocalization().Register();
     VLib.Register();
     new POptions().RegisterOptions(this, typeof(Settings));
     Settings.Init(POptions.ReadSettings <Settings>());
 }
 public void SetTextContent(float a_float)
 {
     GetComponent <Text>().text = ("" + VLib.TruncateFloatsDecimalPlaces(a_float, 2));
 }
Beispiel #4
0
 public static void OnLoad()
 {
     PUtil.InitLibrary();
     PLocalization.Register();
     VLib.Register();
 }
 public void ChangeGameMode(int a_change)
 {
     m_currentGameMode = (eGameMode)VLib.SafeMod((int)(m_currentGameMode + a_change), (int)(eGameMode.ModeCount));
 }