public void Awake <P1, P2, P3, P4>(Entity component, P1 p1, P2 p2, P3 p3, P4 p4) { List <IAwakeSystem> iAwakeSystems = this.awakeSystems[component.GetType()]; if (iAwakeSystems == null) { return; } foreach (IAwakeSystem aAwakeSystem in iAwakeSystems) { if (aAwakeSystem == null) { continue; } IAwake <P1, P2, P3, P4> iAwake = aAwakeSystem as IAwake <P1, P2, P3, P4>; if (iAwake == null) { continue; } try { iAwake.Run(component, p1, p2, p3, p4); } catch (Exception e) { Log.Error(e); } } }
public void Awake <P1>(Component component, P1 p1) { List <IAwakeSystem> iAwakeSystems = this.awakeSystems[component.GetType()]; if (iAwakeSystems == null) { return; } foreach (IAwakeSystem aAwakeSystem in iAwakeSystems) { if (aAwakeSystem == null) { continue; } IAwake <P1> iAwake = aAwakeSystem as IAwake <P1>; if (iAwake == null) { continue; } try { iAwake.Run(component, p1); } catch (Exception e) { Log.Error(e); } } }
public void Awake <P1, P2, P3>(Component disposer, P1 p1, P2 p2, P3 p3) { this.Add(disposer); List <AAwakeSystem> iAwakeSystems = this.awakeEvents[disposer.GetType()]; if (iAwakeSystems == null) { return; } foreach (AAwakeSystem aAwakeSystem in iAwakeSystems) { if (aAwakeSystem == null) { continue; } IAwake <P1, P2, P3> iAwake = aAwakeSystem as IAwake <P1, P2, P3>; if (iAwake == null) { continue; } iAwake.Run(disposer, p1, p2, p3); } }
public static void Awake(Entity component) { List <IAwakeSystem> iAwakeSystems = awakeSystems[component.GetType()]; if (iAwakeSystems == null) { Log.Info(component.GetType() + " is inivd"); return; } foreach (IAwakeSystem aAwakeSystem in iAwakeSystems) { if (aAwakeSystem == null) { continue; } IAwake iAwake = aAwakeSystem as IAwake; if (iAwake == null) { continue; } try { iAwake.Run(component); } catch (Exception e) { Log.Error(e); } } }
public void Awake(Component disposer) { this.Add(disposer); List <AAwakeSystem> iAwakeSystems = this.awakeEvents[disposer.GetType()]; if (iAwakeSystems == null) { return; } foreach (AAwakeSystem aAwakeSystem in iAwakeSystems) { if (aAwakeSystem == null) { continue; } IAwake iAwake = aAwakeSystem as IAwake; if (iAwake == null) { continue; } iAwake.Run(disposer); } }
public void Awake <P1, P2, P3>(Object obj, P1 p1, P2 p2, P3 p3) { List <IAwakeSystem> iAwakeSystems = this.awakeSystems[obj.GetType()]; if (iAwakeSystems == null) { return; } foreach (IAwakeSystem aAwakeSystem in iAwakeSystems) { if (aAwakeSystem == null) { continue; } IAwake <P1, P2, P3> iAwake = aAwakeSystem as IAwake <P1, P2, P3>; if (iAwake == null) { continue; } try { iAwake.Run(obj, p1, p2, p3); } catch (Exception e) { Log.Error(e); } } }
public void Awake(Object obj) { List <IAwakeSystem> iAwakeSystems = this.awakeSystems[obj.GetType()]; if (iAwakeSystems == null) { return; } foreach (IAwakeSystem aAwakeSystem in iAwakeSystems) { if (aAwakeSystem == null) { continue; } IAwake iAwake = aAwakeSystem as IAwake; if (iAwake == null) { continue; } try { iAwake.Run(obj); } catch (Exception e) { Log.Error(e); } } }
public void Awake(Entity component) { List<IAwakeSystem> iAwakeSystems = this.awakeSystems[component.GetType()]; Type t = component.GetType(); if (iAwakeSystems == null) { return; } foreach (IAwakeSystem aAwakeSystem in iAwakeSystems) { if (aAwakeSystem == null) { continue; } IAwake iAwake = aAwakeSystem as IAwake; if (iAwake == null) { continue; } try { iAwake.Run(component); } catch (Exception e) { Log.Error(e); } } }
public void Awake <P1, P2>(Entity component, P1 p1, P2 p2) { List <IAwakeSystem> iAwakeSystems = awakeSystems[component.GetType()]; if (iAwakeSystems == null) { return; } foreach (IAwakeSystem aAwakeSystem in iAwakeSystems) { if (aAwakeSystem == null) { continue; } IAwake <P1, P2> iAwake = aAwakeSystem as IAwake <P1, P2>; if (iAwake == null) { continue; } try { iAwake.Run(component, p1, p2); } catch (Exception e) { Log.Exception(e); } } }