public void OnPointerUp(PointerEventData eventData) { if (!State) { _image.color = ButtonTogglingFeatureSettings.Find().offColor; } }
public void OnPointerDown(PointerEventData eventData) { State = !State; _image.color = ButtonTogglingFeatureSettings.Find().onColor; }