From 2bd6370dc8901a0f4a30bdc833bce438b144e833 Mon Sep 17 00:00:00 2001 From: JoshuaReason Date: Sat, 26 Jan 2019 22:52:47 +1100 Subject: [PATCH] Totes fixed Host --- Assets/Scipts/HomeScreenManager.cs | 7 +++++++ Assets/Shaders.meta | 8 ++++++++ 2 files changed, 15 insertions(+) create mode 100644 Assets/Shaders.meta diff --git a/Assets/Scipts/HomeScreenManager.cs b/Assets/Scipts/HomeScreenManager.cs index dbc2758..2d8f167 100644 --- a/Assets/Scipts/HomeScreenManager.cs +++ b/Assets/Scipts/HomeScreenManager.cs @@ -43,6 +43,7 @@ public class HomeScreenManager : MonoBehaviour { { Server.SetActive(true); int intVal = 0; + bool Succeeded = int.TryParse(Port.text, out intVal); if (Succeeded) { @@ -52,8 +53,14 @@ public class HomeScreenManager : MonoBehaviour { { Server.SetActive(false); } + + IP.text = "127.0.0.1"; + PlayerPrefs.SetString("PORT", Port.text); PlayerPrefs.SetString("NAME", Name.text); + PlayerPrefs.SetString("IP", IP.text); + + Connect(); } public void ChangeName() diff --git a/Assets/Shaders.meta b/Assets/Shaders.meta new file mode 100644 index 0000000..472bf46 --- /dev/null +++ b/Assets/Shaders.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: f87a054963b01dc4c8aa2e3ffedcca21 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: