Exemple #1
0
    private void rightIn()
    {
        RectTransform rectTransform = transform as RectTransform;

        transform.localScale = Vector3.one;
        ActionAnimator.moveFrom(gameObject, AppearTime, new Vector3(Screen.width, initPosition.y, 0), true, AniDurationIn, InAction);
    }
Exemple #2
0
    private void bottomIn()
    {
        RectTransform rectTransform = transform as RectTransform;

        transform.localScale = Vector3.one;
        ActionAnimator.moveFrom(gameObject, AppearTime, new Vector3(initPosition.x, -Screen.height, 0), true, AniDurationIn, InAction);
    }
Exemple #3
0
    private void scaleIn()
    {
        RectTransform rectTransform = transform as RectTransform;

        rectTransform.localScale = Vector3.one;
        ActionAnimator.scaleFrom(gameObject, AppearTime, Vector3.zero, AniDurationIn, InAction);
    }
Exemple #4
0
 private void TickUntilQuit()
 {
     if (AutoQuit)
     {
         DelayAction skyDelayAnimation = ActionAnimator.delayTo(DisplayTime, ShowOut);
         skyDelayAnimation.Play();
     }
 }
Exemple #5
0
 private void rightOut()
 {
     ActionAnimator.moveTo(gameObject, DisappearTime, new Vector3(Screen.width, initPosition.y, 0), true, AniDurationOut, OutAction);
 }
Exemple #6
0
 private void topOut()
 {
     ActionAnimator.moveTo(gameObject, DisappearTime, new Vector3(initPosition.x, Screen.height, 0), true, AniDurationOut, OutAction);
 }
Exemple #7
0
 private void scaleOut()
 {
     ActionAnimator.scaleTo(gameObject, DisappearTime, Vector3.zero, AniDurationOut, OutAction);
 }