36 lines
673 B
C#
36 lines
673 B
C#
using System;
|
|
using System.Collections;
|
|
using System.Collections.Generic;
|
|
// using TTSDK;
|
|
// using TTSDK.UNBridgeLib.LitJson;
|
|
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
|
|
public class TitleButton : MonoBehaviour
|
|
{
|
|
private Button _button;
|
|
[SerializeField] private GameObject titlePanel;
|
|
|
|
private void Awake()
|
|
{
|
|
_button = GetComponent<Button>();
|
|
_button.onClick.AddListener(ButtonEvent);
|
|
}
|
|
|
|
private void ButtonEvent()
|
|
{
|
|
titlePanel.SetActive(true);
|
|
}
|
|
// Start is called before the first frame update
|
|
void Start()
|
|
{
|
|
|
|
}
|
|
|
|
// Update is called once per frame
|
|
void Update()
|
|
{
|
|
|
|
}
|
|
}
|