yyl
2026-05-11 51b0f6ed9f4e1d3bb6f8144470b46908c7699a96
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
using System;
using UnityEngine;
 
public class HeroCallXYFinishWin : UIBase
{
    [SerializeField] UIEffectPlayer xyFinishUIEffect;
    protected override void OnPreOpen()
    {
        xyFinishUIEffect.onComplete += OnComplete;
        xyFinishUIEffect.Play();
    }
 
    protected override void OnPreClose()
    {
        xyFinishUIEffect.onComplete -= OnComplete;
        xyFinishUIEffect.Stop();
    }
 
    private void OnComplete()
    {
        CloseWindow();
    }
}