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();
|
}
|
}
|