private static void Menu_ReviveImmediate(MenuCommand command) { if (!Application.isPlaying) { return; } KillableObject component = command.context as KillableObject; if (component == null) { return; } #if DebugStates Debug.Log("<color=orange>Menu requested REVIVE IMMEDIATE</color>"); #endif component.RequestReviveImmediate(); }
private static void Menu_Kill(MenuCommand command) { if (!Application.isPlaying) { return; } KillableObject component = command.context as KillableObject; if (component == null) { return; } #if DebugStates Debug.Log("<color=orange>Menu requested KILL</color>"); #endif component.RequestKill(); }