mirror of
https://github.com/NotAKidoS/NAK_CVR_Mods.git
synced 2025-09-02 06:19:22 +00:00
yeah
This commit is contained in:
parent
28347e45a4
commit
994d04fe9a
3 changed files with 51 additions and 36 deletions
|
@ -5,27 +5,27 @@ namespace NAK.Melons.FuckMetrics
|
|||
{
|
||||
public static class FuckMetrics
|
||||
{
|
||||
public static void ToggleMetrics(bool disable)
|
||||
public static void ToggleMetrics(bool enable)
|
||||
{
|
||||
var job = SchedulerSystem.Instance.activeJobs.FirstOrDefault(pair => pair.Job.Method.Name == "UpdateMetrics").Job;
|
||||
if (!disable && job == null)
|
||||
if (enable && job == null)
|
||||
{
|
||||
SchedulerSystem.AddJob(new SchedulerSystem.Job(ViewManager.Instance.UpdateMetrics), 0f, 0.5f, -1);
|
||||
}
|
||||
else if (disable && job != null)
|
||||
else if (!enable && job != null)
|
||||
{
|
||||
SchedulerSystem.RemoveJob(job);
|
||||
}
|
||||
}
|
||||
|
||||
public static void ToggleCoreUpdates(bool disable)
|
||||
public static void ToggleCoreUpdates(bool enable)
|
||||
{
|
||||
var job = SchedulerSystem.Instance.activeJobs.FirstOrDefault(pair => pair.Job.Method.Name == "SendCoreUpdate").Job;
|
||||
if (!disable && job == null)
|
||||
if (enable && job == null)
|
||||
{
|
||||
SchedulerSystem.AddJob(new SchedulerSystem.Job(CVR_MenuManager.Instance.SendCoreUpdate), 0f, 0.1f, -1);
|
||||
}
|
||||
else if (disable && job != null)
|
||||
else if (!enable && job != null)
|
||||
{
|
||||
SchedulerSystem.RemoveJob(job);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue