예제 #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);
        }
예제 #2
0
 public SystemRoot()
 {
     InjectionManager.ResolveDependency(this);
 }
예제 #3
0
 protected virtual void Awake()
 {
     InjectionManager.ResolveDependency(this);
 }