コード例 #1
0
 public void OnPointerUp(PointerEventData eventData)
 {
     if (!State)
     {
         _image.color = ButtonTogglingFeatureSettings.Find().offColor;
     }
 }
コード例 #2
0
 public void OnPointerDown(PointerEventData eventData)
 {
     State        = !State;
     _image.color = ButtonTogglingFeatureSettings.Find().onColor;
 }