|
@@ -5,16 +5,19 @@ namespace GFGGame
|
|
|
public class GetSuitItemController
|
|
|
{
|
|
|
public static bool enable = true;
|
|
|
- private static List<int> _waitingToShowList = new List<int>();
|
|
|
private static List<int> _waitingToShowSuit = new List<int>();
|
|
|
|
|
|
+ public static void Clear()
|
|
|
+ {
|
|
|
+ _waitingToShowSuit.Clear();
|
|
|
+ }
|
|
|
+
|
|
|
public static void AddItemId(int itemId)
|
|
|
{
|
|
|
if (!enable || GameGlobal.myUnit == null)
|
|
|
{
|
|
|
return;
|
|
|
}
|
|
|
- _waitingToShowList.Add(itemId);
|
|
|
int suitId = SuitCfgManager.Instance.GetItemSuitId(itemId);
|
|
|
if (_waitingToShowSuit.IndexOf(suitId) < 0)
|
|
|
{
|