mirror of
https://github.com/DCFApixels/DragonECS-Unity.git
synced 2025-09-19 02:24:35 +08:00
add ScriptableObjectSystemWrapper
This commit is contained in:
parent
336a9f3cfe
commit
7a4a1a9c4e
16
src/Buildin/ScriptableObjectSystemWrapper.cs
Normal file
16
src/Buildin/ScriptableObjectSystemWrapper.cs
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
using UnityEngine;
|
||||||
|
|
||||||
|
namespace DCFApixels.DragonECS
|
||||||
|
{
|
||||||
|
[MetaName("ScriptableObjectSystem")]
|
||||||
|
[MetaColor(MetaColor.DragonCyan)]
|
||||||
|
[MetaDescription("Wrapper for ScriptableObject systems")]
|
||||||
|
public class ScriptableObjectSystemWrapper : IEcsModule
|
||||||
|
{
|
||||||
|
public ScriptableObject system;
|
||||||
|
public void Import(EcsPipeline.Builder b)
|
||||||
|
{
|
||||||
|
b.Add(system);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
11
src/Buildin/ScriptableObjectSystemWrapper.cs.meta
Normal file
11
src/Buildin/ScriptableObjectSystemWrapper.cs.meta
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 500803f2f9c3eb24e90b68e42bd6a1af
|
||||||
|
MonoImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
defaultReferences: []
|
||||||
|
executionOrder: 0
|
||||||
|
icon: {instanceID: 0}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
Loading…
Reference in New Issue
Block a user