Better Start Menu

This commit is contained in:
brausjonas committed 2023-01-28 02:44:27 +01:00
1 parent 00b0bf1d34
commit e5a90f519a
17 files changed
+1240 -60

No files matched your search

@@ -42,9 +42,8 @@ public class StartHandler : MonoBehaviour
PlayerPrefs.SetString("roomcode", code);
PlayerPrefs.Save();
GUIUtility.systemCopyBuffer = code;
layout2.GetComponentInChildren<TMP_Text>().text = "Your room code is: \n" + code + "\n copied to clipboard!";
layout2.GetComponentInChildren<TMP_Text>().text = "Your room code is: \n" + code;
}
public void ButtonJoin()
@@ -62,4 +61,15 @@ public class StartHandler : MonoBehaviour
SceneManager.LoadScene(1, LoadSceneMode.Single);
client.Close();
}
public void ButtonBack()
{
layout1.SetActive(true);
layout2.SetActive(false);
}
public void ButtonCopy()
{
GUIUtility.systemCopyBuffer = PlayerPrefs.GetString("roomcode");
}
}