public static void registeGroup(Type type, GROUP_MUTEX mutex = GROUP_MUTEX.COEXIST)
    {
        if (mGroupStateList == null)
        {
            mGroupStateList = new Dictionary <Type, StateGroup>();
        }
        var group = createInstance <StateGroup>(type);

        group.setMutex(mutex);
        mGroupStateList.Add(type, group);
    }
示例#2
0
 public void setMutex(GROUP_MUTEX mutex)
 {
     mMutex = mutex;
 }