mirror of
https://github.com/thegeneralist01/Scene-Manager-DevRepo
synced 2026-01-11 07:30:40 +01:00
21 lines
509 B
C#
21 lines
509 B
C#
using Rage;
|
|
|
|
namespace SceneManager.Utils
|
|
{
|
|
internal static class TogglePaths
|
|
{
|
|
internal static void Toggle(bool disable)
|
|
{
|
|
if (disable)
|
|
{
|
|
PathManager.Paths.ForEach(x => x.DisablePath());
|
|
Game.LogTrivial($"All paths disabled.");
|
|
}
|
|
else
|
|
{
|
|
PathManager.Paths.ForEach(x => x.EnablePath());
|
|
Game.LogTrivial($"All paths enabled.");
|
|
}
|
|
}
|
|
}
|
|
}
|