private void Awake() { _provider = ( SwitchPrefsProvider )Persistence.Player; Notification.EnterExitRequestHandlingSection(); Notification.SetFocusHandlingMode( Notification.FocusHandlingMode.SuspendAndNotify); Notification.notificationMessageReceived += OnNotificationMessageReceived; }
static Persistence() { #if UNITY_EDITOR Player = new PlayerPrefsProvider(); #elif UNITY_SWITCH Player = new SwitchPrefsProvider(); #elif ENABLE_FS_PREFS_PROVIDER Player = new FsPrefsProvider(); #else Player = new PlayerPrefsProvider(); #endif #if UNITY_EDITOR Editor = new EditorPrefsProvider(); #endif }