예제 #1
0
    public void RaiseEvent(EM_EventType type, EventParm parm)
    {
        string key = Enum.GetName(type.GetType(), type);

        if (dict.ContainsKey(key))
        {
            dict[key](parm);
        }
    }
예제 #2
0
    public void RaiseEvent(EM_EventType type, EventParm parm)
    {
        var enumerator = dict.GetEnumerator();

        while (enumerator.MoveNext())
        {
            EventBase obj = enumerator.Current.Value;
            if (obj)
            {
                obj.RaiseEvent(type, parm);
            }
        }

        enumerator.Dispose();
    }
예제 #3
0
파일: Class3.cs 프로젝트: ruancuan/OurGame
 public void Exit(EventParm parm)
 {
     Debug.Log("Exit3" + "--" + parm.id + "--" + parm.name);
 }
예제 #4
0
파일: Class3.cs 프로젝트: ruancuan/OurGame
 public void Game(EventParm parm)
 {
     Debug.Log("Game3" + "--" + parm.id + "--" + parm.name);
 }
예제 #5
0
파일: Class3.cs 프로젝트: ruancuan/OurGame
 public void Login(EventParm parm)
 {
     Debug.Log("Login3" + "--" + parm.id + "--" + parm.name);
 }