|
@@ -9,7 +9,7 @@ namespace GFGGame
|
|
|
|
|
|
public static void AddItemId(int itemId)
|
|
|
{
|
|
|
- if(!enable || GameGlobal.myUnit == null)
|
|
|
+ if (!enable || GameGlobal.myUnit == null)
|
|
|
{
|
|
|
return;
|
|
|
}
|
|
@@ -18,16 +18,16 @@ namespace GFGGame
|
|
|
|
|
|
public static int TryShow(int itemId)
|
|
|
{
|
|
|
- if(itemId < 0)
|
|
|
+ if (itemId > 0)
|
|
|
{
|
|
|
- int index = _waitingToShowList.IndexOf(itemId);
|
|
|
- if(index >= 0)
|
|
|
+ int index = _waitingToShowList.IndexOf(itemId);
|
|
|
+ if (index >= 0)
|
|
|
{
|
|
|
_waitingToShowList.RemoveAt(index);
|
|
|
ViewManager.Show(ViewName.GET_SUIT_ITEM_VIEW, itemId);
|
|
|
}
|
|
|
}
|
|
|
- else if(_waitingToShowList.Count > 0)
|
|
|
+ else if (_waitingToShowList.Count > 0)
|
|
|
{
|
|
|
itemId = _waitingToShowList[0];
|
|
|
_waitingToShowList.RemoveAt(0);
|