| 12345678910111213141516171819202122 | using System.Collections;using UnityEngine;using FairyGUI;namespace GFGGame{    public class ViewAnimationFactory    {        public static void ZoomInCenter(GComponent gComponent, GTweenCallback callback = null)        {            gComponent.SetScale(0.1f, 0.1f);            gComponent.SetPivot(0.5f, 0.5f);            gComponent.TweenScale(new Vector2(1, 1), 0.2f).OnComplete(callback);        }        public static void ZoomOutCenter(GComponent gComponent, GTweenCallback callback)        {            gComponent.TweenScale(new Vector2(0.1f, 0.1f), 0.2f).OnComplete(callback);        }    }}
 |