public static SyncFactory GetOrCreateSyncFactory(Type InType) { SyncFactory factory; if (!FactoriesDict.TryGetValue(InType, out factory)) { try { factory = new SyncFactory(InType); FactoriesDict.Add(InType, factory); } catch (Exception ex) { Debug.LogError(InType + " Create SyncFactory Error : " + ex.Message); } } return(factory); }
protected SyncBase() { factory = SyncFactory.GetOrCreateSyncFactory(GetType()); propertyChangedDict = new Dictionary <string, DlgtPropertyChanged>(); }