private void diploEnterTop()
 {
     foreach (Graphic graphic in diploReact)
     {
         diplomacyResize = UIAnimator.Scale
                               (DiplomacyTab.GetComponent <RectTransform>(), new Vector3(0, 0, 0), new Vector3(1, 1, 1), 0.1f);
         diplomacyFade = UIAnimator.ChangeColor(graphic, new Color(1, 1, 1, 0), new Color(1, 1, 1, 1), 1.2f);
         diplomacyResize.SetDelay(0f);
         diplomacyResize.Play();
         diplomacyFade.Play();
     }
 }
Example #2
0
    private void EditorUpdate()
    {
        float deltaTime = (Time.deltaTime > 0.3f) ? 1 / 60f : (Time.deltaTime == 0.0f) ? 1 / 60f : Time.deltaTime;

        if (graphicAnimation)
        {
            EditorUtility.SetDirty(image);
        }
        if (!uiAnimation.Update(deltaTime))
        {
            uiAnimation.SetDelay(delay);
            uiAnimation.Update(0);
            // The LOOP can cause unexpected behaviour during Edit Mode. Use with caution.
            //if (loop == Loop.NONE)
            EditorApplication.update = null;
            //else
            //uiAnimation.OnFinish();
        }
    }