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 m_Callback; public void SetData(int type, PotionGridUI gridUI, Action 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 } }