private bool HasActivePowerupInGroup(EPowerupGroup group)
        {
            for (int i = 0; i < ActivePowerupsCount; i++)
            {
                ActivePowerup powerup = GetActivePowerup(i);
                if (powerup.Powerup.Group == group)
                {
                    return(true);
                }
            }

            return(false);
        }
        private bool HasActivePowerupInGroup(EPowerupGroup group, out ActivePowerup activePowerup)
        {
            for (int i = 0; i < ActivePowerupsCount; i++)
            {
                ActivePowerup powerup = GetActivePowerup(i);
                if (powerup.Powerup.Group != group)
                {
                    continue;
                }

                activePowerup = powerup;
                return(true);
            }

            activePowerup = new ActivePowerup();
            return(false);
        }