protected override void OnDestroy() { base.OnDestroy(); playersCount--; input.Destroy(); activeCharacters.Remove(character); if (playersCount == 0) { levelGenerator.Restart(0); } }