-
Notifications
You must be signed in to change notification settings - Fork 0
/
EventManager.cs
36 lines (31 loc) · 1.24 KB
/
EventManager.cs
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
using UnityEngine.Events;
namespace CardEase
{
public class EventManager<J, T> where T : CardManager<J> where J : CardModel
{
#region CARD PICK-DROP
/// <summary>
/// Event fired when a card is picked.
/// </summary>
/// <param name="CardManager">the cardManager class of the card that get picked
public static UnityEvent<T> CARD_PICKED = new UnityEvent<T>();
/// <summary>
/// Event fired when a card is dropped.
/// </summary>
/// <param name="CardManager">the cardManager class of the card that get dropped
public static UnityEvent<T> CARD_DROOPED = new UnityEvent<T>();
#endregion
#region CARD SELECTION
/// <summary>
/// Event fired when a card is selected.
/// </summary>
/// <param name="CardManager">the cardManager class of the card that get selected
public static UnityEvent<T> CARD_SELECTED = new UnityEvent<T>();
/// <summary>
/// Event fired when a card is deselected.
/// </summary>
/// <param name="CardManager">the cardManager class of the card that get deselected
public static UnityEvent<T> CARD_DESELECTED = new UnityEvent<T>();
#endregion
}
}