Example #1
0
        public static void Initialize()
        {
//			Assert.raiseExceptions = true;

            GameUI.ListenForMessages(HandleUIMessage);

            _userInput = new UserInput();
        }
Example #2
0
        private void Awake()
        {
            _button = GetComponent <UIButton>();

            if (_button != null)
            {
                _buttonImage = _button.targetGraphic as Image;
                if (_buttonImage != null)
                {
                    _buttonImage.alphaHitTestMinimumThreshold = _matchHitboxToSprite ? 1f : 0f;
                }
            }

            if (_listenToKeyBindings)
            {
                GameUI.ListenForMessages(HandleUIMessage);
            }
        }
Example #3
0
 protected override void InitializeInternal()
 {
     GameUI.ListenForMessages(HandleUIMessage);
 }
Example #4
0
 private void Awake()
 {
     GameUI.ListenForMessages(HandleMessage);
 }