public void OnPointerClick(PointerEventData eventData) { if (enabled) { if (onClick != null) { InAudio.PostEvent(gameObject, onClick); } if (onClickSound != null) { InAudio.PlayPersistent(gameObject.transform.position, onClickSound); } } }
public void OnPointerClick(PointerEventData eventData) { if (enabled) { if (onClick != null) { InAudio.PostEvent(gameObject, onClick); } if (onClickSound != null) { InAudio.PlayPersistent(gameObject.transform.position, onClickSound); } } }