33 lines
773 B
C#
33 lines
773 B
C#
using NSubstitute;
|
|
using System;
|
|
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
namespace game
|
|
{
|
|
public class PotionDelay1Action : PotionAction
|
|
{
|
|
int m_Type = 0;
|
|
PotionGridUI m_PotionGridUI;
|
|
Action<int, PotionGridUI> m_Callback;
|
|
|
|
public void SetData(int type, PotionGridUI gridUI, Action<int, PotionGridUI> callback)
|
|
{
|
|
m_Type = type;
|
|
m_PotionGridUI = gridUI;
|
|
m_Callback = callback;
|
|
}
|
|
#region 生命周期
|
|
public override void Action()
|
|
{
|
|
base.Action();
|
|
if (m_Callback != null)
|
|
{
|
|
m_Callback.Invoke(m_Type, m_PotionGridUI);
|
|
}
|
|
}
|
|
#endregion
|
|
}
|
|
}
|