Trade WIP
This commit is contained in:
@@ -11,7 +11,7 @@ public class TradeMenu : MonoBehaviour
|
||||
{
|
||||
public Transform tradeListParent;
|
||||
public GameObject tradeListItem;
|
||||
|
||||
public GameObject refreshIndicator;
|
||||
public TMP_Text coinsTxt;
|
||||
public TMP_Text gemsTxt;
|
||||
public List<GameObject> pooledEntries;
|
||||
@@ -41,6 +41,7 @@ public class TradeMenu : MonoBehaviour
|
||||
public bool refreshing = false;
|
||||
public async void Refresh(){
|
||||
refreshing = true;
|
||||
refreshIndicator.SetActive(true);
|
||||
//Clean existing entries
|
||||
foreach(GameObject entry in pooledEntries){entry.SetActive(false);}
|
||||
coinsTxt.text = DBmanager.Coins.ToString();
|
||||
@@ -109,7 +110,7 @@ public class TradeMenu : MonoBehaviour
|
||||
}
|
||||
|
||||
|
||||
|
||||
refreshIndicator.SetActive(false);
|
||||
refreshing=false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user