public void Awake <P1, P2, P3, P4>(Entity component, P1 p1, P2 p2, P3 p3, P4 p4) { List <object> iAwakeSystems = this.typeSystems.GetSystems(component.GetType(), typeof(IAwakeSystem <P1, P2, P3, P4>)); if (iAwakeSystems == null) { return; } for (int i = 0; i < iAwakeSystems.Count; ++i) { IAwakeSystem <P1, P2, P3, P4> aAwakeSystem = iAwakeSystems[i] as IAwakeSystem <P1, P2, P3, P4>; if (aAwakeSystem == null) { continue; } try { aAwakeSystem.Run(component, p1, p2, p3, p4); } catch (Exception e) { Log.Error(e); } } }
public void Awake(Entity component) { List <object> iAwakeSystems = this.typeSystems.GetSystems(component.GetType(), typeof(IAwakeSystem)); if (iAwakeSystems == null) { return; } for (int i = 0; i < iAwakeSystems.Count; ++i) { IAwakeSystem aAwakeSystem = iAwakeSystems[i] as IAwakeSystem; if (aAwakeSystem == null) { continue; } try { aAwakeSystem.Run(component); } catch (Exception e) { Log.Error(e); } } }