private void destroy() { if (!reported) { wg.enemyCount--; if (wg.enemyCount == 0) { wg.NextWave(); } analytics.IncreaseMeleeKillCount(); reported = true; } Destroy(gameObject); }