28 lines
512 B
C#
28 lines
512 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
|
|
public class Backbtn : MonoBehaviour
|
|
{
|
|
public GameObject shihuo;
|
|
public Button gandiao;
|
|
void Start()
|
|
{
|
|
gandiao.onClick.AddListener(() =>
|
|
{
|
|
Debug.Log("diandaol");
|
|
Shihuo();
|
|
});
|
|
}
|
|
public void Shihuo()
|
|
{
|
|
shihuo.gameObject.SetActive(false);
|
|
}
|
|
// Update is called once per frame
|
|
void Update()
|
|
{
|
|
|
|
}
|
|
}
|