/// <summary> /// 初始化模块 /// </summary> internal override void OnInitialization() { base.OnInitialization(); _helper = Helper as IECSHelper; _helper.OnInitialization(); }
protected override void OnRuntimeEnable() { base.OnRuntimeEnable(); _ECSHelper = _helper as IECSHelper; _systemFoldouts = new Dictionary <string, bool>(); foreach (var system in _ECSHelper.Systems) { _systemFoldouts.Add(system.Value.Name, false); } }
protected override void OnRuntimeEnable() { base.OnRuntimeEnable(); _ECSHelper = Target.GetType().GetField("_helper", BindingFlags.Instance | BindingFlags.NonPublic).GetValue(Target) as IECSHelper; _systemFoldouts = new Dictionary <string, bool>(); foreach (var system in _ECSHelper.Systems) { _systemFoldouts.Add(system.Value.Name, false); } }