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); }
public SystemRoot() { InjectionManager.ResolveDependency(this); }
protected virtual void Awake() { InjectionManager.ResolveDependency(this); }