Now unlocks the cursor when the menu is opened
This commit is contained in:
@@ -57,6 +57,7 @@ namespace DevourClient.Hacks
|
||||
try
|
||||
{
|
||||
NolanBehaviour Nolan = UnityEngine.Object.FindObjectOfType<NolanBehaviour>();
|
||||
|
||||
Light flashlightSpot = Nolan.flashlightSpot;
|
||||
|
||||
if (reset)
|
||||
@@ -135,6 +136,18 @@ namespace DevourClient.Hacks
|
||||
public PlayRandomAudioClip laughClips;
|
||||
*/
|
||||
|
||||
/*
|
||||
NolanBehaviour[] Nolan_t = UnityEngine.Object.FindObjectsOfType<NolanBehaviour>();
|
||||
|
||||
for (int i = 0; i < Nolan_t.Length; i++)
|
||||
{
|
||||
NolanBehaviour Nolan = Nolan_t[i];
|
||||
|
||||
MelonLogger.Msg("-------------------------");
|
||||
MelonLogger.Msg("isClient : " + Nolan.gameUI.isClient);
|
||||
MelonLogger.Msg("senderName : " + Nolan.gameUI.name);
|
||||
}
|
||||
*/
|
||||
PlayRandomAudioClip playRandomAudioClip = UnityEngine.Object.FindObjectOfType<PlayRandomAudioClip>();
|
||||
NolanVoiceOvers nolanVoiceOvers = UnityEngine.Object.FindObjectOfType<NolanVoiceOvers>();
|
||||
|
||||
@@ -174,6 +187,8 @@ namespace DevourClient.Hacks
|
||||
public static void InstantWin()
|
||||
{
|
||||
Survival survival_class = UnityEngine.Object.FindObjectOfType<Survival>();
|
||||
survival_class.m_InnMapController.AddEggToWorld();
|
||||
|
||||
try
|
||||
{
|
||||
survival_class.PlayEnding("InnWin");
|
||||
|
||||
@@ -31,6 +31,17 @@ namespace DevourClient
|
||||
|
||||
if (Input.GetKeyDown(KeyCode.Insert))
|
||||
{
|
||||
GameUI gameUI = UnityEngine.Object.FindObjectOfType<GameUI>();
|
||||
|
||||
if (Settings.Settings.menu_enable)
|
||||
{
|
||||
gameUI.HideMouseCursor();
|
||||
}
|
||||
else
|
||||
{
|
||||
gameUI.ShowMouseCursor();
|
||||
}
|
||||
|
||||
Settings.Settings.menu_enable = !Settings.Settings.menu_enable;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user