Esempio n. 1
0
        private void UpdateButtons()
        {
            buttons.Clear();

            if (_playerManager.ControlledEntity != null && assigned != null)
            {
                foreach (StatusEffect effect in assigned.Effects)
                {
                    if (effect.isVisible == true)
                    {
                        var newButt = new StatusEffectButton(effect, _resourceManager);
                        buttons.Add(newButt);
                    }
                }
            }
        }
        private void UpdateButtons()
        {
            buttons.Clear();

            if (_playerManager.ControlledEntity != null && assigned != null)
            {
                foreach (StatusEffect effect in assigned.Effects)
                {
                    if (effect.isVisible == true)
                    {
                        var newButt = new StatusEffectButton(effect, _resourceManager);
                        buttons.Add(newButt);
                    }
                }
            }
        }