removed debug macro's
This commit is contained in:
@@ -25,11 +25,37 @@ public class LeverPatch
|
||||
|
||||
LungProp[] allApparatuses = Object.FindObjectsOfType<LungProp>();
|
||||
|
||||
// ==========================================
|
||||
// QUICK DEBUG MACROS
|
||||
// ==========================================
|
||||
if (Keyboard.current != null)
|
||||
// Checking if its actually been pulled.
|
||||
bool isApparatusPulled = true;
|
||||
|
||||
foreach (LungProp apparatus in allApparatuses)
|
||||
{
|
||||
// if any of the Lungs are NOT in the ship, that means theres still 1 (or more) in the facility.
|
||||
if (!apparatus.isInShipRoom)
|
||||
{
|
||||
isApparatusPulled = false;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if (!isApparatusPulled)
|
||||
{
|
||||
__instance.triggerScript.hoverTip = "Pull lever : [Start Ship]\n<color=#FF0000>WARNING: Launching without Apparatus in the Ship!</color>";
|
||||
}
|
||||
else
|
||||
{
|
||||
__instance.triggerScript.hoverTip = "Pull lever : [Start Ship]";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
// ==========================================
|
||||
// QUICK DEBUG MACROS
|
||||
// ==========================================
|
||||
if (Keyboard.current != null)
|
||||
{
|
||||
// Press Numpad Minus (-) to Teleport to the UNSECURED Apparatus
|
||||
if (Keyboard.current[Key.NumpadMinus].wasPressedThisFrame)
|
||||
{
|
||||
@@ -67,32 +93,8 @@ public class LeverPatch
|
||||
HUDManager.Instance.DisplayTip("Debug", "Teleported back to Ship!");
|
||||
}
|
||||
}
|
||||
}
|
||||
// ==========================================
|
||||
// END QUICK DEBUG MACROS
|
||||
// ==========================================
|
||||
|
||||
|
||||
// Checking if its actually been pulled.
|
||||
bool isApparatusPulled = true;
|
||||
|
||||
foreach (LungProp apparatus in allApparatuses)
|
||||
{
|
||||
// if any of the Lungs are NOT in the ship, that means theres still 1 (or more) in the facility.
|
||||
if (!apparatus.isInShipRoom)
|
||||
{
|
||||
isApparatusPulled = false;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if (!isApparatusPulled)
|
||||
{
|
||||
__instance.triggerScript.hoverTip = "Pull lever : [Start Ship]\n<color=#FF0000>WARNING: Launching without Apparatus in the Ship!</color>";
|
||||
}
|
||||
else
|
||||
{
|
||||
__instance.triggerScript.hoverTip = "Pull lever : [Start Ship]";
|
||||
}
|
||||
}
|
||||
}
|
||||
// ==========================================
|
||||
// END QUICK DEBUG MACROS
|
||||
// ==========================================
|
||||
*/
|
||||
Reference in New Issue
Block a user