Started Trading UI

This commit is contained in:
Anthony 2020-12-08 15:54:51 +00:00
parent 3450d454ad
commit 03429a276a
10 changed files with 9910 additions and 145 deletions

View File

@ -20,7 +20,6 @@
<Path>.vs</Path>
<Path>Library</Path>
<Path>Logs</Path>
<Path>Temp</Path>
<Path>UserSettings</Path>
<Path>obj</Path>
</explicitExcludes>

File diff suppressed because it is too large Load Diff

View File

@ -46,7 +46,9 @@ public class Inventory : MonoBehaviour
public void OpenInventory() //This function renders the inventory panel.
{
Player currentPlayer = main.board.players[main.board.currentPlayer]; //Initialises the current player to make the code look neater.
for (int i = 0; i < properties.Length; i++) //Checks through all of the buttons.
Debug.Log(currentPlayer.ownedProperties.Count);
for (int i = 0; i < properties.Length; i++) //Checks through all of the buttons.
{
if (currentPlayer.ownedProperties.Count == 0)
{

View File

@ -0,0 +1,12 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
using TMPro;
public class Trade : MonoBehaviour
{
public List<Button> player1Properties;
public List<Button> player2Properties;
}

View File

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 299d2e0b18767d9458154dc94ac7c728
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long