示例#1
0
 public static void RegisterManger(NipaPrefsManager manager)
 {
     if (managers.ContainsKey(manager.id))
     {
         return;
     }
     managers.Add(manager.id, manager);
     OnManagerReady?.Invoke(manager);
 }
示例#2
0
 public static bool GetManager(string managerId, out NipaPrefsManager manager)
 {
     if (!managers.ContainsKey(managerId))
     {
         manager = null;
         return(false);
     }
     else
     {
         manager = managers[managerId];
         return(true);
     }
 }