private void TriggerSpawner(ISpawner argSpawner) { if (!m_canTrigger) { return; } argSpawner.BeginSpawning(); if (m_singleUse) { m_canTrigger = false; } else { StartCoroutine(TriggerDelay(m_triggerDelaySeconds)); } }
private void TriggerSpawner(ISpawner argSpawner) { if (!m_canTrigger) { return; } argSpawner.BeginSpawning(); if (m_singleUse) { m_canTrigger = false; } else { StartCoroutine(TriggerDelay(m_triggerDelaySeconds)); } }