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