public GameObject GetModel(EntityBeingResourceType resource, bool positive)
                {
                    TextModelEntityResourcesParameters modelByResource = _modelPerResource[PinouUtils.Maths.Pow2toIndex((int)resource)];

                    return(positive ?
                           (modelByResource.ShouldDisplayPositiveText ? modelByResource.PositiveReceivedTextModel : null) :
                           (modelByResource.ShouldDisplayNegativeText ? modelByResource.NegativeReceivedTextModel : null));
                }
                private bool ValidateModelByResources(TextModelEntityResourcesParameters[] parameters)
                {
                    if (_modelPerResource == null)
                    {
                        _modelPerResource = new TextModelEntityResourcesParameters[0];
                    }

                    Array enumValues = Enum.GetValues(typeof(EntityBeingResourceType));
                    bool  valide     = true;

                    if (_modelPerResource.Length != enumValues.Length)
                    {
                        valide = false;
                    }
                    else
                    {
                        for (int i = 0; i < _modelPerResource.Length; i++)
                        {
                            if (_modelPerResource[i].ResourceType != (EntityBeingResourceType)Mathf.Pow(2f, i))
                            {
                                valide = false;
                                break;
                            }
                        }
                    }

                    if (valide == false)
                    {
                        _modelPerResource = new TextModelEntityResourcesParameters[enumValues.Length];
                        for (int i = 0; i < _modelPerResource.Length; i++)
                        {
                            _modelPerResource[i] = new TextModelEntityResourcesParameters((EntityBeingResourceType)Mathf.Pow(2f, i));
                        }
                    }

                    return(true);
                }