40 lines
839 B
C#
40 lines
839 B
C#
using System;
|
|
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
|
|
public class ServerWorkIntroPanel : MonoBehaviour
|
|
{
|
|
public static ServerWorkIntroPanel Instance;
|
|
|
|
[Header("UI 元件")]
|
|
public Button checkButton;
|
|
|
|
private void Awake()
|
|
{
|
|
Instance = this;
|
|
}
|
|
// Start is called once before the first execution of Update after the MonoBehaviour is created
|
|
void Start()
|
|
{
|
|
if (checkButton)
|
|
{
|
|
checkButton.onClick.AddListener(checkButton_onClicked);
|
|
}
|
|
}
|
|
|
|
private void checkButton_onClicked()
|
|
{
|
|
//this.gameObject.SetActive(false);
|
|
if (ServerWorkSceneController.Instance != null)
|
|
{
|
|
ServerWorkSceneController.Instance.processStep(2);
|
|
}
|
|
}
|
|
|
|
// Update is called once per frame
|
|
void Update()
|
|
{
|
|
|
|
}
|
|
}
|