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

            GameUI.ListenForMessages(HandleUIMessage);

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