Test accounts
This commit is contained in:
committed by
Jelle De Geest
parent
fee989006c
commit
7b6eb4db69
@@ -1,10 +1,9 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using TMPro;
|
||||
using UnityEngine;
|
||||
using UnityEngine.UI;
|
||||
using TMPro;
|
||||
|
||||
public class HangmanGameController : MonoBehaviour
|
||||
{
|
||||
@@ -199,7 +198,7 @@ public class HangmanGameController : MonoBehaviour
|
||||
/// Accuracy feeback object
|
||||
/// </summary>
|
||||
public Feedback feedback;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// The button to go into the game
|
||||
/// </summary>
|
||||
@@ -223,6 +222,7 @@ public class HangmanGameController : MonoBehaviour
|
||||
playerPanel.SetActive(true);
|
||||
|
||||
// Create entry in current user for keeping track of progress
|
||||
userList.Load();
|
||||
user = userList.GetCurrentUser();
|
||||
Progress progress = user.GetMinigameProgress(minigame.index);
|
||||
if (progress == null)
|
||||
@@ -331,7 +331,7 @@ public class HangmanGameController : MonoBehaviour
|
||||
public void TwoPlayer()
|
||||
{
|
||||
if (currentWord.Length >= 2)
|
||||
{
|
||||
{
|
||||
StartGame();
|
||||
}
|
||||
}
|
||||
@@ -341,8 +341,8 @@ public class HangmanGameController : MonoBehaviour
|
||||
/// </summary>
|
||||
public void Update()
|
||||
{
|
||||
if(mode == 1)
|
||||
{
|
||||
if (mode == 1)
|
||||
{
|
||||
if (currentsign != "")
|
||||
{
|
||||
char letter = currentsign.ToLower()[0];
|
||||
@@ -359,7 +359,7 @@ public class HangmanGameController : MonoBehaviour
|
||||
if (Input.GetKey(KeyCode.Backspace))
|
||||
{
|
||||
// Remove the last letter from the currentword
|
||||
if(currentWord.Length > 0)
|
||||
if (currentWord.Length > 0)
|
||||
{
|
||||
currentWord = currentWord.Substring(0, currentWord.Length - 1);
|
||||
inputTextField.text = currentWord.ToString();
|
||||
@@ -372,7 +372,7 @@ public class HangmanGameController : MonoBehaviour
|
||||
inputTextField.text = currentWord.ToString();
|
||||
}
|
||||
}
|
||||
gottogamebutton.SetActive(currentWord.Length >2);
|
||||
gottogamebutton.SetActive(currentWord.Length > 2);
|
||||
}
|
||||
|
||||
if (mode == 2)
|
||||
|
||||
Reference in New Issue
Block a user