@ -1,8 +0,0 @@ | |||||
fileFormatVersion: 2 | |||||
guid: 7dbc36665bc0d684db9a4447e27a7a4b | |||||
folderAsset: yes | |||||
DefaultImporter: | |||||
externalObjects: {} | |||||
userData: | |||||
assetBundleName: | |||||
assetBundleVariant: |
@ -1,8 +0,0 @@ | |||||
fileFormatVersion: 2 | |||||
guid: 860c08388401a6d4e858fe4910ea9337 | |||||
folderAsset: yes | |||||
DefaultImporter: | |||||
externalObjects: {} | |||||
userData: | |||||
assetBundleName: | |||||
assetBundleVariant: |
@ -1,8 +0,0 @@ | |||||
fileFormatVersion: 2 | |||||
guid: f6caae32d463529478f2186f47c2e3fe | |||||
folderAsset: yes | |||||
DefaultImporter: | |||||
externalObjects: {} | |||||
userData: | |||||
assetBundleName: | |||||
assetBundleVariant: |
@ -0,0 +1,3 @@ | |||||
version https://git-lfs.github.com/spec/v1 | |||||
oid sha256:75d1d366515f1ee9c5accad4e0c3de25a3d68b0391bc31921d7a89d58c8029c7 | |||||
size 45836 |
@ -1,6 +1,5 @@ | |||||
fileFormatVersion: 2 | fileFormatVersion: 2 | ||||
guid: 3d7d7a61a5341904eb3c65af025b1d86 | |||||
folderAsset: yes | |||||
guid: bd7b77db655c8c44b85cdd06e9ce9bae | |||||
DefaultImporter: | DefaultImporter: | ||||
externalObjects: {} | externalObjects: {} | ||||
userData: | userData: |
@ -1,3 +1,3 @@ | |||||
version https://git-lfs.github.com/spec/v1 | version https://git-lfs.github.com/spec/v1 | ||||
oid sha256:6f20ea3050a82f28cd55b2c1ff133057d302ec2ecec14f3f0b59477598461b08 | |||||
size 45816 | |||||
oid sha256:2884d7c10378352a9a3863aa21382541b6fb45a0d4b69c9c59ca99352d6555f8 | |||||
size 45893 |
@ -1,5 +1,5 @@ | |||||
fileFormatVersion: 2 | fileFormatVersion: 2 | ||||
guid: 296bd90e667df1f4697823a0aa45acf0 | |||||
guid: 8d7394d70ec233849a60a26da5f23b75 | |||||
folderAsset: yes | folderAsset: yes | ||||
DefaultImporter: | DefaultImporter: | ||||
externalObjects: {} | externalObjects: {} |
@ -1,8 +0,0 @@ | |||||
fileFormatVersion: 2 | |||||
guid: 8936b441d7647f74884c94f97bfb8931 | |||||
folderAsset: yes | |||||
DefaultImporter: | |||||
externalObjects: {} | |||||
userData: | |||||
assetBundleName: | |||||
assetBundleVariant: |
@ -0,0 +1,48 @@ | |||||
using System.Collections; | |||||
using System.Collections.Generic; | |||||
using UnityEngine; | |||||
using Networking.Client; | |||||
public class LobbyWaitManager : MonoBehaviour | |||||
{ | |||||
[SerializeField] | |||||
private ConnectedClients AllClients; | |||||
[SerializeField] | |||||
private ClientObject localClient; | |||||
[SerializeField] | |||||
private UnityEngine.UI.Button StartButton; | |||||
private void OnEnable() | |||||
{ | |||||
AllClients.OnClientsChange += UpdateButton; | |||||
} | |||||
private void OnDisable() | |||||
{ | |||||
AllClients.OnClientsChange -= UpdateButton; | |||||
} | |||||
private void Start() | |||||
{ | |||||
UpdateButton(AllClients.AllClients); | |||||
} | |||||
public void OnClick_Start() | |||||
{ | |||||
localClient.client.Send(LoginProtocols.StartGame, new Networking.LogicProtocols.EmptyMsg()); | |||||
} | |||||
private void UpdateButton(List<ClientData> AllClients) | |||||
{ | |||||
if (AllClients.Count > 0 && AllClients[0].characterAnimal == localClient.PlayerAnimal) | |||||
{ | |||||
StartButton.gameObject.SetActive(true); | |||||
} | |||||
else | |||||
{ | |||||
StartButton.gameObject.SetActive(false); | |||||
} | |||||
} | |||||
} |
@ -0,0 +1,11 @@ | |||||
fileFormatVersion: 2 | |||||
guid: 80436e4e0645dd64fbeb765b080e04ce | |||||
MonoImporter: | |||||
externalObjects: {} | |||||
serializedVersion: 2 | |||||
defaultReferences: [] | |||||
executionOrder: 0 | |||||
icon: {instanceID: 0} | |||||
userData: | |||||
assetBundleName: | |||||
assetBundleVariant: |
@ -1,3 +1,3 @@ | |||||
version https://git-lfs.github.com/spec/v1 | version https://git-lfs.github.com/spec/v1 | ||||
oid sha256:e48732e471c7fbb8ad8d49bbcc12af26273e0caa803f73b6610358d1793ca05f | |||||
size 2120 | |||||
oid sha256:1890d8b9d4cb6c52f70ca8e818b21a7f57189e3c35841758de9fc21b4fd1bbe0 | |||||
size 2232 |