Exemplo n.º 1
0
            public void OnRemove(string name)
            {
                int index = _statusComponents.FindIndex(x => x.transform.name == name);

                if (index != -1)
                {
                    StatusComponent statusEffectComponent = _statusComponents[index];
                    _statusComponents.RemoveAt(index);
                    statusEffectComponent.Destroy();
                }
            }