Browse Source

Totes fixed Host

master
JoshuaReason 5 years ago
parent
commit
2bd6370dc8
2 changed files with 15 additions and 0 deletions
  1. +7
    -0
      Assets/Scipts/HomeScreenManager.cs
  2. +8
    -0
      Assets/Shaders.meta

+ 7
- 0
Assets/Scipts/HomeScreenManager.cs View File

@ -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()

+ 8
- 0
Assets/Shaders.meta View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: f87a054963b01dc4c8aa2e3ffedcca21
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

Loading…
Cancel
Save