LoadMap function has been added.

This commit is contained in:
jadis0x
2023-01-12 21:01:16 +03:00
committed by GitHub
parent 7550443ead
commit ea9a4e13ab

View File

@@ -28,5 +28,17 @@
{ {
return Helpers.Entities.Azazels[0].gameObject; return Helpers.Entities.Azazels[0].gameObject;
} }
public static void LoadMap(string mapName)
{
if (Il2CppPhoton.Bolt.BoltNetwork.IsServer)
{
Il2CppPhoton.Bolt.BoltNetwork.LoadScene(mapName);
}
else
{
DevourClient.Hacks.Misc.ShowMessageBox("You must be the host to use this command!");
}
}
} }
} }