using System.Collections;
|
using System.Collections.Generic;
|
using UnityEngine;
|
using System;
|
using TowerDefense.Level;
|
|
/**
|
* 无尽模式选择buff
|
* @Author: chenxin
|
* @Date: 2020-10-15 17:00:26
|
*/
|
namespace KTGMGemClient
|
{
|
public class SelectBuff : MonoBehaviour
|
{
|
/// <summary>
|
/// 选择的索引
|
/// </summary>
|
public int Index;
|
|
public event Action<int> OnSelectBuffCompleted;
|
|
private void Start()
|
{
|
OnSelectBuffCompleted += EndlessLevelManager.instance.OnBuffSelectCompleted;
|
}
|
|
/// <summary>
|
/// 点击选择buff
|
/// </summary>
|
public void OnClick()
|
{
|
if (OnSelectBuffCompleted != null)
|
OnSelectBuffCompleted(Index);
|
}
|
}
|
}
|