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

            GameUI.ListenForMessages(HandleUIMessage);

            _userInput = new UserInput();
        }
Esempio n. 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);
            }
        }
Esempio n. 3
0
 protected override void InitializeInternal()
 {
     GameUI.ListenForMessages(HandleUIMessage);
 }
Esempio n. 4
0
 private void Awake()
 {
     GameUI.ListenForMessages(HandleMessage);
 }