Exemple #1
0
    public override void OnPointerUp(PointerEventData eventData)
    {
        if (IsActivated)
        {
            return;
        }

        JTween.ScaleTo(this.gameObject, _localScale, GetTransitionTime(), 0, _buttonStyle);
    }
Exemple #2
0
    public virtual void OnPointerDown(PointerEventData eventData)
    {
        if (!IsActivated)
        {
            return;
        }

        JTween.ScaleTo(this.gameObject, _localScale * _pressedScale, GetTransitionTime(), 0, _buttonStyle);
    }
Exemple #3
0
    public void StartClosePopup()
    {
        this.transform.localScale = this.transform.localScale;

        JTween.ScaleTo(this.gameObject, JTween.Hash("scale", Vector3.zero, "time", _popupTransitionTime, "easetype", _curPopupStyle, "oncomplete", "ClosePopup"));
    }
Exemple #4
0
    public override void OnPointerUp(PointerEventData eventData)
    {
        base.OnPointerUp(eventData);

        JTween.ScaleTo(this.gameObject, _localScale, GetTransitionTime(), 0, _buttonStyle);
    }
Exemple #5
0
    public void StartOpenPopup()
    {
        this.transform.localScale = Vector3.zero;

        JTween.ScaleTo(this.gameObject, new Vector3(1, 1, 1), _popupTransitionTime, 0, _curPopupStyle);
    }