Better Placement

This commit is contained in:
brausjonas
2023-02-27 19:07:40 +01:00
parent f3cfdffb51
commit 51155b4e97
9 changed files with 103 additions and 21 deletions
+1 -1
View File
@@ -129,7 +129,7 @@
<workItem from="1676493059699" duration="795000" /> <workItem from="1676493059699" duration="795000" />
<workItem from="1676920253715" duration="2806000" /> <workItem from="1676920253715" duration="2806000" />
<workItem from="1677436455528" duration="8395000" /> <workItem from="1677436455528" duration="8395000" />
<workItem from="1677516389539" duration="4004000" /> <workItem from="1677516389539" duration="4730000" />
</task> </task>
<servers /> <servers />
</component> </component>
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+26 -1
View File
@@ -88,13 +88,38 @@ public class Client : MonoBehaviour
} }
} }
int current = 1;
for (int j = 0; j < temp.Length; j++) for (int j = 0; j < temp.Length; j++)
{ {
for (int i = 0; i < temp.Length; i++) for (int i = 0; i < temp.Length; i++)
{ {
if (temp[j] == players[i]) if (temp[j] == players[i])
{ {
playerInfoElements[i].textPlacement.text = j+1 + "."; // playerInfoElements[i].textPlacement.text = j+1 + ".";
if (j + 1 < temp.Length)
{
if (temp[j].stars == temp[j + 1].stars && temp[j].coins == temp[j + 1].coins)
{
playerInfoElements[i].textPlacement.text = current + ".";
for (int f = 0; f < temp.Length; f++)
{
if (temp[j + 1] == players[f])
{
playerInfoElements[f].textPlacement.text = current + ".";
}
}
current += 2;
}
else
{
playerInfoElements[i].textPlacement.text = current + ".";
current++;
}
}
} }
} }
} }
@@ -137,7 +137,9 @@ PlayerSettings:
16:9: 1 16:9: 1
Others: 1 Others: 1
bundleVersion: 0.1 bundleVersion: 0.1
preloadedAssets: [] preloadedAssets:
- {fileID: -6230802382160794249, guid: 90cd1b71078984c4980fcd1aa03eaaa3, type: 2}
- {fileID: 11400000, guid: 48bf7376b3770c44cbfe3f40e77359ab, type: 2}
metroInputSource: 0 metroInputSource: 0
wsaTransparentSwapchain: 0 wsaTransparentSwapchain: 0
m_HolographicPauseOnTrackingLoss: 1 m_HolographicPauseOnTrackingLoss: 1
+1
View File
@@ -87,6 +87,7 @@
<workItem from="1675795807134" duration="411000" /> <workItem from="1675795807134" duration="411000" />
<workItem from="1676926021732" duration="612000" /> <workItem from="1676926021732" duration="612000" />
<workItem from="1677445028345" duration="816000" /> <workItem from="1677445028345" duration="816000" />
<workItem from="1677520608630" duration="13000" />
</task> </task>
<servers /> <servers />
</component> </component>
Binary file not shown.
Binary file not shown.
+1 -1
View File
@@ -10,7 +10,7 @@ import java.util.TimerTask;
public class Room public class Room
{ {
private Client[] players = new Client[2]; private Client[] players = new Client[3];
private Vector3[] startPositions; private Vector3[] startPositions;
private String roomCode; private String roomCode;
private Server server; private Server server;