Example #1
0
        public virtual void AddSystem(ComponentSystem componentSystem)
        {
            Type componentSystemType = componentSystem.GetType();

            if (componentSystemType.GetMethod("OnStart").DeclaringType == componentSystemType)
            {
                _startSystemList.Add(componentSystem);
            }
            if (componentSystemType.GetMethod("OnUpdate").DeclaringType == componentSystemType)
            {
                _updateSystemList.Add(componentSystem);
            }
            if (componentSystemType.GetMethod("OnFixedUpdate").DeclaringType == componentSystemType)
            {
                _fixedUpdateSystemList.Add(componentSystem);
            }
            InjectionManager.ResolveDependency(componentSystem);
            HandleTupleInjection(componentSystem);
        }
Example #2
0
 public SystemRoot()
 {
     InjectionManager.ResolveDependency(this);
 }
Example #3
0
 protected virtual void Awake()
 {
     InjectionManager.ResolveDependency(this);
 }