Example #1
0
 public void RemoveHandle(FSMMesgType key)
 {
     if (_handDic.ContainsKey(key))
     {
         _handDic.Remove(key);
     }
 }
Example #2
0
 public void TriggerHandle(FSMMesgType key)
 {
     if (_handDic.ContainsKey(key) && _handDic[key] != null)
     {
         _handDic[key]();
     }
 }
Example #3
0
    public void RegesterHandle(FSMMesgType key, HandleFSMController handle)
    {
        if (_handDic.ContainsKey(key))
        {
            Debug.LogError("key " + key + " has been regestered");
            return;
        }

        _handDic.Add(key, handle);
    }