示例#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;
 }