River Jiang
2020-10-21 16072ec5c78cf2f183ef5cbdddeb34416225a9ea
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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);
        }
    }
}