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); }
public void setMutex(GROUP_MUTEX mutex) { mMutex = mutex; }