// --------------------------------------------------------------------------------------------- // Below are methods used for debugging // --------------------------------------------------------------------------------------------- void DebugToggleTimer() { switchTimerOn = !switchTimerOn; if (switchTimerOn) { debugLog.AddLog("Random weapon switching: ON"); } else { debugLog.AddLog("Random weapon switching: OFF"); } }
void DebugToggleMove() { agent.isStopped = !agent.isStopped; // Check if debug log is available to write in if (debugLog == null) { return; } if (agent.isStopped) { debugLog.AddLog("AI navigation: PAUSED"); } else { debugLog.AddLog("AI navigation: RESUMED"); } }