update level mode UI add background variation age restriction popup and increased quiz font size
This commit is contained in:
parent
cb22232bb9
commit
61346c0039
|
@ -2009,8 +2009,8 @@ MonoBehaviour:
|
|||
m_faceColor:
|
||||
serializedVersion: 2
|
||||
rgba: 4294967295
|
||||
m_fontSize: 36
|
||||
m_fontSizeBase: 36
|
||||
m_fontSize: 50
|
||||
m_fontSizeBase: 50
|
||||
m_fontWeight: 400
|
||||
m_enableAutoSizing: 0
|
||||
m_fontSizeMin: 18
|
||||
|
@ -2279,8 +2279,8 @@ MonoBehaviour:
|
|||
m_faceColor:
|
||||
serializedVersion: 2
|
||||
rgba: 4294967295
|
||||
m_fontSize: 20
|
||||
m_fontSizeBase: 20
|
||||
m_fontSize: 30
|
||||
m_fontSizeBase: 30
|
||||
m_fontWeight: 400
|
||||
m_enableAutoSizing: 0
|
||||
m_fontSizeMin: 18
|
||||
|
@ -2549,8 +2549,8 @@ MonoBehaviour:
|
|||
m_faceColor:
|
||||
serializedVersion: 2
|
||||
rgba: 4294967295
|
||||
m_fontSize: 20
|
||||
m_fontSizeBase: 20
|
||||
m_fontSize: 30
|
||||
m_fontSizeBase: 30
|
||||
m_fontWeight: 400
|
||||
m_enableAutoSizing: 0
|
||||
m_fontSizeMin: 18
|
||||
|
@ -2684,8 +2684,8 @@ MonoBehaviour:
|
|||
m_faceColor:
|
||||
serializedVersion: 2
|
||||
rgba: 4294967295
|
||||
m_fontSize: 20
|
||||
m_fontSizeBase: 20
|
||||
m_fontSize: 30
|
||||
m_fontSizeBase: 30
|
||||
m_fontWeight: 400
|
||||
m_enableAutoSizing: 0
|
||||
m_fontSizeMin: 18
|
||||
|
@ -3019,8 +3019,8 @@ MonoBehaviour:
|
|||
m_faceColor:
|
||||
serializedVersion: 2
|
||||
rgba: 4294967295
|
||||
m_fontSize: 20
|
||||
m_fontSizeBase: 20
|
||||
m_fontSize: 30
|
||||
m_fontSizeBase: 30
|
||||
m_fontWeight: 400
|
||||
m_enableAutoSizing: 0
|
||||
m_fontSizeMin: 18
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -1928,7 +1928,7 @@ Transform:
|
|||
m_GameObject: {fileID: 1879414513}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 7, y: -2, z: 0}
|
||||
m_LocalScale: {x: -1, y: 1, z: 1}
|
||||
m_LocalScale: {x: -1.5, y: 1.5, z: 1}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children:
|
||||
- {fileID: 9033464704044447221}
|
||||
|
|
|
@ -1990,7 +1990,7 @@ Transform:
|
|||
m_GameObject: {fileID: 1879414513}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 7, y: -2, z: 0}
|
||||
m_LocalScale: {x: -1, y: 1, z: 1}
|
||||
m_LocalScale: {x: -1.5, y: 1.5, z: 1}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children:
|
||||
- {fileID: 9033464704044447221}
|
||||
|
|
|
@ -1928,7 +1928,7 @@ Transform:
|
|||
m_GameObject: {fileID: 1879414513}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 7, y: -2, z: 0}
|
||||
m_LocalScale: {x: -1, y: 1, z: 1}
|
||||
m_LocalScale: {x: -1.5, y: 1.5, z: 1}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children:
|
||||
- {fileID: 9033464704044447221}
|
||||
|
|
|
@ -1990,7 +1990,7 @@ Transform:
|
|||
m_GameObject: {fileID: 1879414513}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 7, y: -2, z: 0}
|
||||
m_LocalScale: {x: -1, y: 1, z: 1}
|
||||
m_LocalScale: {x: -1.5, y: 1.5, z: 1}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children:
|
||||
- {fileID: 9033464704044447221}
|
||||
|
|
|
@ -1928,7 +1928,7 @@ Transform:
|
|||
m_GameObject: {fileID: 1879414513}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 7, y: -2, z: 0}
|
||||
m_LocalScale: {x: -1, y: 1, z: 1}
|
||||
m_LocalScale: {x: -1.5, y: 1.5, z: 1}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children:
|
||||
- {fileID: 9033464704044447221}
|
||||
|
|
|
@ -1990,7 +1990,7 @@ Transform:
|
|||
m_GameObject: {fileID: 1879414513}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 7, y: -2, z: 0}
|
||||
m_LocalScale: {x: -1, y: 1, z: 1}
|
||||
m_LocalScale: {x: -1.5, y: 1.5, z: 1}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children:
|
||||
- {fileID: 9033464704044447221}
|
||||
|
|
|
@ -1928,7 +1928,7 @@ Transform:
|
|||
m_GameObject: {fileID: 1879414513}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 7, y: -2, z: 0}
|
||||
m_LocalScale: {x: -1, y: 1, z: 1}
|
||||
m_LocalScale: {x: -1.2, y: 1.2, z: 1}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children:
|
||||
- {fileID: 9033464704044447221}
|
||||
|
|
|
@ -1990,7 +1990,7 @@ Transform:
|
|||
m_GameObject: {fileID: 1879414513}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 7, y: -2, z: 0}
|
||||
m_LocalScale: {x: -1, y: 1, z: 1}
|
||||
m_LocalScale: {x: -1.2, y: 1.2, z: 1}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children:
|
||||
- {fileID: 9033464704044447221}
|
||||
|
|
|
@ -1928,7 +1928,7 @@ Transform:
|
|||
m_GameObject: {fileID: 1879414513}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 7, y: -2, z: 0}
|
||||
m_LocalScale: {x: -1, y: 1, z: 1}
|
||||
m_LocalScale: {x: -1.2, y: 1.2, z: 1}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children:
|
||||
- {fileID: 9033464704044447221}
|
||||
|
|
|
@ -1990,7 +1990,7 @@ Transform:
|
|||
m_GameObject: {fileID: 1879414513}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 7, y: -2, z: 0}
|
||||
m_LocalScale: {x: -1, y: 1, z: 1}
|
||||
m_LocalScale: {x: -1.2, y: 1.2, z: 1}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children:
|
||||
- {fileID: 9033464704044447221}
|
||||
|
|
|
@ -1928,7 +1928,7 @@ Transform:
|
|||
m_GameObject: {fileID: 1879414513}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 7, y: -2, z: 0}
|
||||
m_LocalScale: {x: -1, y: 1, z: 1}
|
||||
m_LocalScale: {x: -1.2, y: 1.2, z: 1}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children:
|
||||
- {fileID: 9033464704044447221}
|
||||
|
|
|
@ -1990,7 +1990,7 @@ Transform:
|
|||
m_GameObject: {fileID: 1879414513}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 7, y: -2, z: 0}
|
||||
m_LocalScale: {x: -1, y: 1, z: 1}
|
||||
m_LocalScale: {x: -1.2, y: 1.2, z: 1}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children:
|
||||
- {fileID: 9033464704044447221}
|
||||
|
|
|
@ -21,7 +21,7 @@ public class AuntMenu : Menu<AuntMenu>
|
|||
private string paswordRegister;
|
||||
|
||||
[SerializeField] private GameObject RegisterObj;
|
||||
[SerializeField] private GameObject DataDiriObject;
|
||||
[SerializeField] private GameObject InvalidAge;
|
||||
|
||||
[Header("Login")]
|
||||
[SerializeField] private TMP_InputField usernameFieldLogin;
|
||||
|
@ -103,22 +103,28 @@ public class AuntMenu : Menu<AuntMenu>
|
|||
Debug.Log("MainMenu Open");
|
||||
}
|
||||
|
||||
public void NextToDataDiri()
|
||||
{
|
||||
if (IsRegisterFieldInvalid()) return;
|
||||
DataDiriObject.SetActive(true);
|
||||
RegisterObj.SetActive(false);
|
||||
}
|
||||
|
||||
|
||||
public async void Register()
|
||||
{
|
||||
if (IsRegisterFieldInvalid()) return;
|
||||
|
||||
usernameRegister = usernameFieldRegister.text;
|
||||
paswordRegister = paswordFieldRegister.text;
|
||||
EmailRegister = EmailFieldRegister.text;
|
||||
AgeRegister = ageFieldRegister.text;
|
||||
|
||||
if (!int.TryParse(AgeRegister, out int age))
|
||||
{
|
||||
Debug.LogWarning("Age must be a valid number!");
|
||||
return;
|
||||
}
|
||||
|
||||
if (age < 6 || age > 12)
|
||||
{
|
||||
Debug.LogWarning("Age must be between 6 and 12 years!");
|
||||
InvalidAge.SetActive(true);
|
||||
return;
|
||||
}
|
||||
|
||||
if (string.IsNullOrEmpty(usernameRegister) || string.IsNullOrEmpty(paswordRegister))
|
||||
{
|
||||
Debug.LogWarning("Username or password is empty!");
|
||||
|
@ -129,7 +135,8 @@ public class AuntMenu : Menu<AuntMenu>
|
|||
SaveData dataToSave = new SaveData();
|
||||
dataToSave.playerName = nameFieldRegister.text;
|
||||
dataToSave.agePlayer = AgeRegister;
|
||||
|
||||
|
||||
await Cloudsave.SaveData(dataToSave, "DataPlayer");
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue