using UnityEngine; public class SplashUI : UIPanelBase { public void Close() { var animator = GetComponent<Animator>(); animator.StopPlayback(); UIManager.Instance.CloseCurrent(); UIManager.Instance.ShowPanel<MainUIPanel>(); } }