From e0cc9d35aa6182badf3d464e04927b1ce09284fd Mon Sep 17 00:00:00 2001 From: pklaschka Date: Mon, 29 May 2017 00:10:42 +0200 Subject: [PATCH] Ein echter Server + Ordnerstruktur-Verbesserungen --- .../MenuSystem/Bestenliste.unity | 19 ++++++++-- .../Assets/Scripts/Bestenliste/Bestenliste.cs | 38 ++++++++++++++++++- .../Assets/Scripts/Endlosmodus/Highscore.cs | 4 +- .../Assets/Scripts/MenuSystem.meta | 4 +- .../Scripts/MenuSystem/GameOverErgebnis.cs | 6 +-- .../MenuSystem/GameOverErgebnis.cs.meta | 0 .../Scripts/MenuSystem/KampagneSceneLoader.cs | 0 .../MenuSystem/KampagneSceneLoader.cs.meta | 0 .../Assets/Scripts/MenuSystem/LevelAuswahl.cs | 0 .../Scripts/MenuSystem/LevelAuswahl.cs.meta | 0 .../Assets/Scripts/MenuSystem/OptionSaver.cs | 0 .../Scripts/MenuSystem/OptionSaver.cs.meta | 0 .../Assets/Scripts/MenuSystem/SceneLoader.cs | 0 .../Scripts/MenuSystem/SceneLoader.cs.meta | 0 14 files changed, 60 insertions(+), 11 deletions(-) rename "Platformer_001/Assets/Scripts/Menu\314\210system.meta" => Platformer_001/Assets/Scripts/MenuSystem.meta (67%) rename "Platformer_001/Assets/Scripts/Menu\314\210system/GameOverErgebnis.cs" => Platformer_001/Assets/Scripts/MenuSystem/GameOverErgebnis.cs (74%) rename "Platformer_001/Assets/Scripts/Menu\314\210system/GameOverErgebnis.cs.meta" => Platformer_001/Assets/Scripts/MenuSystem/GameOverErgebnis.cs.meta (100%) rename "Platformer_001/Assets/Scripts/Menu\314\210system/KampagneSceneLoader.cs" => Platformer_001/Assets/Scripts/MenuSystem/KampagneSceneLoader.cs (100%) rename "Platformer_001/Assets/Scripts/Menu\314\210system/KampagneSceneLoader.cs.meta" => Platformer_001/Assets/Scripts/MenuSystem/KampagneSceneLoader.cs.meta (100%) rename "Platformer_001/Assets/Scripts/Menu\314\210system/LevelAuswahl.cs" => Platformer_001/Assets/Scripts/MenuSystem/LevelAuswahl.cs (100%) rename "Platformer_001/Assets/Scripts/Menu\314\210system/LevelAuswahl.cs.meta" => Platformer_001/Assets/Scripts/MenuSystem/LevelAuswahl.cs.meta (100%) rename "Platformer_001/Assets/Scripts/Menu\314\210system/OptionSaver.cs" => Platformer_001/Assets/Scripts/MenuSystem/OptionSaver.cs (100%) rename "Platformer_001/Assets/Scripts/Menu\314\210system/OptionSaver.cs.meta" => Platformer_001/Assets/Scripts/MenuSystem/OptionSaver.cs.meta (100%) rename "Platformer_001/Assets/Scripts/Menu\314\210system/SceneLoader.cs" => Platformer_001/Assets/Scripts/MenuSystem/SceneLoader.cs (100%) rename "Platformer_001/Assets/Scripts/Menu\314\210system/SceneLoader.cs.meta" => Platformer_001/Assets/Scripts/MenuSystem/SceneLoader.cs.meta (100%) diff --git a/Platformer_001/Assets/Scenes (Level)/MenuSystem/Bestenliste.unity b/Platformer_001/Assets/Scenes (Level)/MenuSystem/Bestenliste.unity index 3e50b0c..8cfa064 100644 --- a/Platformer_001/Assets/Scenes (Level)/MenuSystem/Bestenliste.unity +++ b/Platformer_001/Assets/Scenes (Level)/MenuSystem/Bestenliste.unity @@ -577,6 +577,7 @@ MonoBehaviour: bestenliste: {fileID: 75309908} ownScore: {fileID: 104631839} nameInput: {fileID: 704186048} + btnSubmit: {fileID: 0} --- !u!114 &579019993 MonoBehaviour: m_ObjectHideFlags: 0 @@ -963,7 +964,18 @@ MonoBehaviour: Culture=neutral, PublicKeyToken=null m_OnValueChanged: m_PersistentCalls: - m_Calls: [] + m_Calls: + - m_Target: {fileID: 971447814} + m_MethodName: CheckSubmitable + m_Mode: 1 + m_Arguments: + m_ObjectArgument: {fileID: 0} + m_ObjectArgumentAssemblyTypeName: UnityEngine.Object, UnityEngine + m_IntArgument: 0 + m_FloatArgument: 0 + m_StringArgument: + m_BoolArgument: 0 + m_CallState: 2 m_TypeName: UnityEngine.UI.InputField+OnChangeEvent, UnityEngine.UI, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null m_CaretColor: {r: 0.19607843, g: 0.19607843, b: 0.19607843, a: 1} @@ -1148,7 +1160,7 @@ Prefab: - target: {fileID: 224902029835350780, guid: f6748a010e46d4334a2b9717aa34b24d, type: 2} propertyPath: m_AnchoredPosition.y - value: -216.5 + value: 0 objectReference: {fileID: 0} - target: {fileID: 224902029835350780, guid: f6748a010e46d4334a2b9717aa34b24d, type: 2} @@ -1409,6 +1421,7 @@ MonoBehaviour: bestenliste: {fileID: 75309908} ownScore: {fileID: 104631839} nameInput: {fileID: 704186048} + btnSubmit: {fileID: 0} --- !u!1 &1091293677 GameObject: m_ObjectHideFlags: 0 @@ -1874,7 +1887,7 @@ Prefab: - target: {fileID: 224902029835350780, guid: f6748a010e46d4334a2b9717aa34b24d, type: 2} propertyPath: m_AnchoredPosition.y - value: -141.5 + value: 0 objectReference: {fileID: 0} - target: {fileID: 224902029835350780, guid: f6748a010e46d4334a2b9717aa34b24d, type: 2} diff --git a/Platformer_001/Assets/Scripts/Bestenliste/Bestenliste.cs b/Platformer_001/Assets/Scripts/Bestenliste/Bestenliste.cs index 1a3e497..42c5110 100644 --- a/Platformer_001/Assets/Scripts/Bestenliste/Bestenliste.cs +++ b/Platformer_001/Assets/Scripts/Bestenliste/Bestenliste.cs @@ -7,7 +7,7 @@ public class Bestenliste : MonoBehaviour { - public static string serverAdress = "http://bestenliste:meineGemeineBestenliste@pi/inf21platformer"; + public static string serverAdress = "http://bestenliste:meineGemeineBestenliste@inf21platformer.pabloklaschka.de"; private static string best5Adress = "getBestFive.php"; private static string rankAdress = "getRank.php?score="; @@ -16,12 +16,15 @@ public class Bestenliste : MonoBehaviour public Text bestenliste; public Text ownScore; public InputField nameInput; + public Button btnSubmit; private int score; private string scoreConfirmation; private void Start() { + btnSubmit = GetComponent