Ejemplo n.º 1
0
        private void Onfinish()
        {
            _isTurned             = !_isTurned;
            ClickTarget.isEnabled = _isTurned;
            if (!_isTurned)
            {
                SetHeld();
            }
            var showValue = _isTurned ? Value : 0;

            Show(showValue);
            _ro.RemoveOnFinished(ChangeFEvent);
            _ro.ResetToBeginning();
            _ro.from = new Vector3(0, -90, 0);
            _ro.to   = new Vector3(0, 0, 0);
            _ro.AddOnFinished(ChangeOEvent);
            _ro.PlayForward();
        }
Ejemplo n.º 2
0
        private void Onfinish1()
        {
            TweenRotation rightTweenR = GetComponent <TweenRotation>();

            if (rightTweenR == null)
            {
                return;
            }
            rightTweenR.RemoveOnFinished(_changeOEvent);
        }
Ejemplo n.º 3
0
        private void Onfinish1()
        {
            if (Owner != null)
            {
                Owner.CheckCardPoint();
            }

            TweenRotation rightTweenR = GetComponent <TweenRotation>();

            rightTweenR.RemoveOnFinished(_changeOEvent);
        }
Ejemplo n.º 4
0
        private void Onfinish()
        {
            TweenRotation rightTweenR = GetComponent <TweenRotation>();

            SetCardFront();

            rightTweenR.RemoveOnFinished(_changeFEvent);

            rightTweenR.from = new Vector3(0, -90, 0);
            rightTweenR.to   = new Vector3(0, 0, 0);
            rightTweenR.AddOnFinished(_changeOEvent);
            rightTweenR.ResetToBeginning();
            rightTweenR.PlayForward();
        }
 public void OnTweenEnd()
 {
     if (Tweener != null)
     {
         Tweener.RemoveOnFinished(TweenEndCallback);
         Tweener.enabled = false;
     }
     if (Reset)
     {
         if (Tweener != null && Tweener.gameObject != null)
         {
             Tweener.gameObject.transform.eulerAngles = Tweener.from;
         }
     }
     m_Status = Status.StopOnNextFrame;
 }
Ejemplo n.º 6
0
 public void RemoveListener()
 {
     EventDelegate.Remove(mBtn.onClick, OnClicked);
     mAwardTweener.RemoveOnFinished(OnTweenerFinished);
 }
Ejemplo n.º 7
0
        private void Onfinish1()
        {
            TweenRotation rightTweenR = GetComponent <TweenRotation>();

            rightTweenR.RemoveOnFinished(_changeOEvent);
        }