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); }
public void OnEnable() { buff = target as CombatBufferDef; }