59 lines
1.2 KiB
C#
59 lines
1.2 KiB
C#
using System;
|
|
using System.Collections;
|
|
using TMPro;
|
|
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
|
|
public class ServerGameFinalSurveyPanel : MonoBehaviour
|
|
{
|
|
public static ServerGameFinalSurveyPanel Instance;
|
|
|
|
public static string val1;
|
|
public static string val2;
|
|
public static string val3;
|
|
public static string text1;
|
|
|
|
public StarRating val1StarRating;
|
|
public StarRating val2StarRating;
|
|
public StarRating val3StarRating;
|
|
public TMP_Text text1Text;
|
|
|
|
public Button okButton;
|
|
|
|
private void Awake()
|
|
{
|
|
Instance = this;
|
|
}
|
|
|
|
// Start is called once before the first execution of Update after the MonoBehaviour is created
|
|
void Start()
|
|
{
|
|
if (okButton)
|
|
{
|
|
okButton.onClick.AddListener(okButton_onClicked);
|
|
}
|
|
|
|
if (text1Text)
|
|
{
|
|
text1Text.text = text1;
|
|
}
|
|
}
|
|
|
|
private void okButton_onClicked()
|
|
{
|
|
if (ServerWorkSceneController.Instance)
|
|
{
|
|
ServerWorkSceneController.Instance.processStep(11);
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
// Update is called once per frame
|
|
void Update()
|
|
{
|
|
|
|
}
|
|
}
|