64 lines
1.3 KiB
C#
64 lines
1.3 KiB
C#
using System;
|
|
using System.Collections;
|
|
using UnityEngine;
|
|
using UnityEngine.SceneManagement;
|
|
using UnityEngine.UI;
|
|
|
|
public class ServerGamePanel : MonoBehaviour
|
|
{
|
|
public static ServerGamePanel Instance;
|
|
|
|
public Button goTalkingButton;
|
|
public Button goTypingButton;
|
|
public Button goStricksButton;
|
|
|
|
private void Awake()
|
|
{
|
|
Instance = this;
|
|
}
|
|
|
|
// Start is called once before the first execution of Update after the MonoBehaviour is created
|
|
void Start()
|
|
{
|
|
if (goTalkingButton)
|
|
{
|
|
goTalkingButton.onClick.AddListener(goTalkingButton_onClicked);
|
|
}
|
|
if (goTypingButton)
|
|
{
|
|
goTypingButton.onClick.AddListener(goTypingButton_onClicked);
|
|
}
|
|
if (goStricksButton)
|
|
{
|
|
goStricksButton.onClick.AddListener(goStricksButton_onClicked);
|
|
}
|
|
}
|
|
|
|
private void goStricksButton_onClicked()
|
|
{
|
|
|
|
}
|
|
|
|
private void goTypingButton_onClicked()
|
|
{
|
|
|
|
}
|
|
|
|
private void goTalkingButton_onClicked()
|
|
{
|
|
|
|
}
|
|
|
|
IEnumerator LoadNextScene(string sceneName)
|
|
{
|
|
yield return new WaitForSeconds(0f);
|
|
SceneManager.LoadScene(sceneName);
|
|
}
|
|
|
|
// Update is called once per frame
|
|
void Update()
|
|
{
|
|
|
|
}
|
|
}
|