public override void OnPointerUp(PointerEventData eventData) { if (IsActivated) { return; } JTween.ScaleTo(this.gameObject, _localScale, GetTransitionTime(), 0, _buttonStyle); }
public virtual void OnPointerDown(PointerEventData eventData) { if (!IsActivated) { return; } JTween.ScaleTo(this.gameObject, _localScale * _pressedScale, GetTransitionTime(), 0, _buttonStyle); }
public void StartClosePopup() { this.transform.localScale = this.transform.localScale; JTween.ScaleTo(this.gameObject, JTween.Hash("scale", Vector3.zero, "time", _popupTransitionTime, "easetype", _curPopupStyle, "oncomplete", "ClosePopup")); }
public override void OnPointerUp(PointerEventData eventData) { base.OnPointerUp(eventData); JTween.ScaleTo(this.gameObject, _localScale, GetTransitionTime(), 0, _buttonStyle); }
public void StartOpenPopup() { this.transform.localScale = Vector3.zero; JTween.ScaleTo(this.gameObject, new Vector3(1, 1, 1), _popupTransitionTime, 0, _curPopupStyle); }