Пример #1
0
        public static CombatBufferDef CreateCombatBuff()
        {
            int count = ScriptableObjectUtility.GetFoldFileCount(DIRECTORY_PATH);

            CombatBufferDef buff = ScriptableObjectUtility.CreateAsset <CombatBufferDef>(
                count.ToString(),
                DIRECTORY_PATH,
                true
                );

            buff.CommonProperty.ID   = count;
            buff.CommonProperty.Name = "";
            return(buff);
        }
Пример #2
0
 public void OnEnable()
 {
     buff = target as CombatBufferDef;
 }