public static void OnLoad() { PUtil.InitLibrary(); PLocalization.Register(); VLib.Register(); POptions.RegisterOptions(typeof(Settings)); Settings.Init(POptions.ReadSettings <Settings>()); }
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)); }
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)); }