55 lines
1.3 KiB
C#
55 lines
1.3 KiB
C#
using TMPro;
|
|
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
|
|
/// <summary>
|
|
/// The mulitplayer panel for Hangman
|
|
/// </summary>
|
|
public class PanelMultiplayerInput : MonoBehaviour
|
|
{
|
|
/// <summary>
|
|
/// The button to go into the game
|
|
/// </summary>
|
|
public GameObject gotoGameButton;
|
|
|
|
/// <summary>
|
|
/// This textfield holds the word that player 1 is typing
|
|
/// </summary>
|
|
public TMP_Text inputTextField;
|
|
|
|
/// <summary>
|
|
/// Reference to the feedback field
|
|
/// </summary>
|
|
public TMP_Text feedbackText;
|
|
|
|
/// <summary>
|
|
/// Reference to the progress bar
|
|
/// </summary>
|
|
public Slider feedbackProgressBar;
|
|
|
|
/// <summary>
|
|
/// Reference to the progress bar image, so we can add fancy colors
|
|
/// </summary>
|
|
public Image feedbackProgressImage;
|
|
|
|
/// <summary>
|
|
/// reference to the webcam background
|
|
/// </summary>
|
|
public RawImage webcamScreen;
|
|
|
|
/// <summary>
|
|
/// Holds a reference to the TimerCircle to update its fill
|
|
/// </summary>
|
|
public Image timerCircle;
|
|
|
|
/// <summary>
|
|
/// Hold a reference to the confirmPanel to toggle its activity
|
|
/// </summary>
|
|
public GameObject confirmPanel;
|
|
|
|
/// <summary>
|
|
/// Hold a reference to the confirmPanel to toggle its activity
|
|
/// </summary>
|
|
public TMP_Text confirmText;
|
|
}
|