框架更新
This commit is contained in:
@@ -28,7 +28,7 @@ public abstract class RunSystem<T> : CustomSystem<T> where T : Entity
|
||||
/// 不知道为什么这样定义的,就照搬就可以了。
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public override Type EntitiesType() => typeof(T);
|
||||
public override Type EntityType() => typeof(T);
|
||||
}
|
||||
|
||||
// 下面是一个测试自定义系统。
|
||||
|
||||
@@ -56,7 +56,7 @@ public sealed class OnCreateSceneEvent : AsyncEventSystem<OnCreateScene>
|
||||
{
|
||||
var subSceneTestComponent = scene.AddComponent<SubSceneTestComponent>();
|
||||
Log.Debug("增加了SubSceneTestComponent");
|
||||
scene.EntityComponent.CustomSystem(subSceneTestComponent, CustomSystemType.RunSystem);
|
||||
// scene.EntityComponent.CustomSystem(subSceneTestComponent, CustomSystemType.RunSystem);
|
||||
break;
|
||||
}
|
||||
case SceneType.Addressable:
|
||||
@@ -173,7 +173,7 @@ public sealed class OnCreateSceneEvent : AsyncEventSystem<OnCreateScene>
|
||||
|
||||
// 执行自定义系统
|
||||
var testCustomSystemComponent = scene.AddComponent<TestCustomSystemComponent>();
|
||||
scene.EntityComponent.CustomSystem(testCustomSystemComponent, CustomSystemType.RunSystem);
|
||||
// scene.EntityComponent.CustomSystem(testCustomSystemComponent, CustomSystemType.RunSystem);
|
||||
// // 测试配置表
|
||||
// var instanceList = UnitConfigData.Instance.List;
|
||||
// var unitConfig = instanceList[0];
|
||||
|
||||
Reference in New Issue
Block a user