mirror of
https://github.com/thegeneralist01/Scene-Manager-DevRepo
synced 2026-01-11 23:50:29 +01:00
Initial commit
This commit is contained in:
parent
296206f5b9
commit
fd12e1bea2
9 changed files with 1031 additions and 0 deletions
21
SceneManager/Utils/TogglePaths.cs
Normal file
21
SceneManager/Utils/TogglePaths.cs
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
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.");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue