36 lines
847 B
C#
36 lines
847 B
C#
|
|
using System;
|
|
using System.Threading.Tasks;
|
|
using UnityEngine;
|
|
|
|
namespace EventCubeMelt
|
|
{
|
|
public class EmptyCellRender : MonoBehaviour
|
|
{
|
|
|
|
// 特效直接挂身上可以不
|
|
// [SerializeField] private GameObject fxDisAppear;
|
|
|
|
//-
|
|
private GameObject _disappearEffectGo;
|
|
private void Awake()
|
|
{
|
|
// if (fxDisAppear)
|
|
// {
|
|
// _disappearEffectGo = Instantiate(fxDisAppear,transform);
|
|
// _disappearEffectGo?.SetActive(false);
|
|
// }
|
|
}
|
|
|
|
#region 用户函数
|
|
public async Task RunClearAnimation()
|
|
{
|
|
_disappearEffectGo?.SetActive(true);
|
|
await Awaiters.Seconds(0.8f);
|
|
_disappearEffectGo?.SetActive(false);
|
|
}
|
|
#endregion
|
|
}
|
|
|
|
|
|
} |