mirror of
https://github.com/smyalygames/monopoly.git
synced 2025-07-05 08:21:00 +02:00
Started Trading UI
This commit is contained in:
parent
3450d454ad
commit
03429a276a
1
.idea/.idea.Monopoly/.idea/indexLayout.xml
generated
1
.idea/.idea.Monopoly/.idea/indexLayout.xml
generated
@ -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
@ -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)
|
||||
{
|
||||
|
12
Assets/Scripts/monopoly/Trade.cs
Normal file
12
Assets/Scripts/monopoly/Trade.cs
Normal 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;
|
||||
|
||||
}
|
11
Assets/Scripts/monopoly/Trade.cs.meta
Normal file
11
Assets/Scripts/monopoly/Trade.cs.meta
Normal 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
File diff suppressed because one or more lines are too long
Loading…
x
Reference in New Issue
Block a user