Ejemplo n.º 1
0
        private void Awake()
        {
            _provider = ( SwitchPrefsProvider )Persistence.Player;

            Notification.EnterExitRequestHandlingSection();

            Notification.SetFocusHandlingMode(
                Notification.FocusHandlingMode.SuspendAndNotify);
            Notification.notificationMessageReceived += OnNotificationMessageReceived;
        }
Ejemplo n.º 2
0
        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
        }