public static void Initialize() { // Assert.raiseExceptions = true; GameUI.ListenForMessages(HandleUIMessage); _userInput = new UserInput(); }
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); } }
protected override void InitializeInternal() { GameUI.ListenForMessages(HandleUIMessage); }
private void Awake() { GameUI.ListenForMessages(HandleMessage); }