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

            GameUI.ListenForMessages(HandleUIMessage);

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