public void Dispath(EventArg arg) { EventDel del = null; _delDic.TryGetValue(arg.eID, out del); if (del != null) { del(arg); } else { Debug.LogWarning("entity is didnot add listenner, enum = " + arg.eID); } }
public void DisPatch(EventArg arg) { enity.Dispath(arg); }