lvjincheng 3 anni fa
parent
commit
b8126da2a9
1 ha cambiato i file con 2 aggiunte e 1 eliminazioni
  1. 2 1
      Assets/BowArrow/Scripts/Expand/SB_EventSystem.cs

+ 2 - 1
Assets/BowArrow/Scripts/Expand/SB_EventSystem.cs

@@ -54,12 +54,13 @@ public class SB_EventSystem : MonoBehaviour
         //         }
         //     };
         // }
-        Color pointerHoverColor = Color.yellow;
+        Color pointerHoverColor = new Color(233f/255, 233f/255, 233f/255, 128f/255);
         void InitListenerForMouseHoverHightColor() {
             simulateMouse.OnPointerEnter += (Selectable target) => {
                 Button btn = target.GetComponent<Button>();
                 if (!btn) return;
                 if (btn.transition != Selectable.Transition.ColorTint) return;
+                if (!btn.interactable) return;
                 ColorBlock colorBlock = btn.colors;
                 colorBlock.highlightedColor = pointerHoverColor;
                 btn.colors = colorBlock;