Esempio n. 1
0
        void OnEnable()
        {
            if (!_isInitialized)
            {
                _joystickActivator.ActiveController.Subscribe(controller => {
                    if (enabled && controller.HasValue)
                    {
                        _notificationList.AddTimedNotification(
                            "'" + controller.Value.Name + "' connected",
                            5.Seconds());
                    }
                });

                _isInitialized = true;
            }
        }