Пример #1
0
        /// <summary>
        /// 初始化模块
        /// </summary>
        internal override void OnInitialization()
        {
            base.OnInitialization();

            _helper = Helper as IECSHelper;
            _helper.OnInitialization();
        }
Пример #2
0
        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);
            }
        }
Пример #3
0
        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);
            }
        }