Esempio n. 1
0
 public void UnRegisterEvent(EnumEventDispathcer eventName)
 {
     if (!mEventDict.ContainsKey(eventName))
     {
         return;
     }
     mEventDict.Remove(eventName);
 }
Esempio n. 2
0
 public void RegisterEvent(EnumEventDispathcer eventName, Action <object> action)
 {
     if (mEventDict.ContainsKey(eventName))
     {
         return;
     }
     mEventDict[eventName] = action;
 }
Esempio n. 3
0
    public void Notify(EnumEventDispathcer eventName, object args)
    {
        Action <object> action;

        if (mEventDict.TryGetValue(eventName, out action))
        {
            action(args);
        }
    }
Esempio n. 4
0
 protected void RegisterEvent(EnumEventDispathcer eventType, Action <object> action)
 {
     mDispathcer.RegisterEvent(eventType, action);
     mEventList.Add(eventType);
 }
Esempio n. 5
0
 public void Notify(EnumEventDispathcer eventName)
 {
     Notify(eventName, null);
 }
Esempio n. 6
0
	public void Notify(EnumEventDispathcer eventName) {
		Notify(eventName, null);
	}
Esempio n. 7
0
	public void Notify(EnumEventDispathcer eventName, object args) {
		Action<object> action;
		if (mEventDict.TryGetValue(eventName,out action)) {
			action(args);
		}
	}
Esempio n. 8
0
	public void UnRegisterEvent(EnumEventDispathcer eventName) {
		if (!mEventDict.ContainsKey(eventName)) {
			return;
		}
		mEventDict.Remove(eventName);
	}
Esempio n. 9
0
	public void RegisterEvent(EnumEventDispathcer eventName, Action<object> action) {
		if (mEventDict.ContainsKey(eventName)) {
			return;
		}
		mEventDict[eventName] = action;
	}