private static void CreateBaseStatAsset()
        {
            BaseStat newData = CustomDataAssetUtility.CreateAndReturnDataAsset <BaseStat>();

            newData.Init();

            RpgDataRegistry registry = RpgDataAssetUtility.FindRpgDataRegistry();

            RpgRegistryUtility.AdderOfBaseStat newAdder;
            newAdder.baseStat = newData;
            registry.AddRpgDataObject(newAdder);
        }
        /// <summary>
        ///     Search for a BaseStat by name (not filename). Will return null if not found
        /// </summary>
        public BaseStat SearchBaseStat(string byName)
        {
            BaseStat foundObject = null;

            foreach (BaseStat entry in this.baseStats)
            {
                if (entry.Name.Equals(byName))
                {
                    foundObject = entry;
                    break;
                }
            }

            return(foundObject);
        }
        /// <summary>
        ///     Search for a BaseStat by ID. Will return null if not found
        /// </summary>
        public BaseStat SearchBaseStat(Guid byId)
        {
            BaseStat foundObject = null;

            foreach (BaseStat entry in this.baseStats)
            {
                if (entry.Id.Equals(byId))
                {
                    foundObject = entry;
                    break;
                }
            }

            return(foundObject);
        }
 /// <summary>
 ///     Constructor needs a BaseStat
 /// </summary>
 public BaseSpDeriver(BaseStat statReference) : base(statReference.Id)
 {
     // Intentionally empty
 }
 void OnEnable()
 {
     this.dataObject = target as BaseStat;
 }