Exemplo n.º 1
0
 public override void Go()
 {
     if (By)
     {
         Ease3.GoRotationBy(this, Value, Time, null, Complete.Invoke, Type, Delay, Repeat, PingPong, RealTime);
     }
     else
     {
         Ease3.GoRotationTo(this, Value, Time, null, Complete.Invoke, Type, Delay, Repeat, PingPong, RealTime);
     }
 }
Exemplo n.º 2
0
    void Start()
    {
        var scale  = 2;
        var camera = Camera.main;

        if (camera != null)
        {
            var fitX     = (int)(Screen.width / Henry.sprite.rect.width);
            var fitY     = (int)(Screen.height / Henry.sprite.rect.height);
            var newScale = Mathf.Min(fitX, fitY) - 2;
            if (newScale > scale)
            {
                scale = newScale;
            }
        }
        StartCoroutine(PlayDelayed());
        Ease3.GoScaleTo(Henry, new Vector3(scale, scale, 1f), _timeAnimation, null, null, EaseType.BounceOut, _timeDelay);
        Ease3.GoRotationTo(Henry, new Vector3(0f, 0f, 180f), _timeAnimation, null, null, EaseType.BounceOut, _timeDelay);
        Ease3.GoColorTo(this, Color.black.GetVector3(), _timeAnimation, null, Fade, EaseType.BounceOut, _timeDelay);
    }