36 lines
729 B
C#
36 lines
729 B
C#
/// <summary>
|
|
///********************************************************
|
|
/// 创建人: GD
|
|
/// 创建时间: #CreateTime#
|
|
/// 描述:
|
|
///********************************************************
|
|
/// <summary>
|
|
|
|
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
|
|
public class InputBtnActiveGame : MonoBehaviour
|
|
{
|
|
Button btn;
|
|
|
|
[SerializeField]
|
|
GameObject go;
|
|
void Start()
|
|
{
|
|
btn = GetComponentInChildren<Button>();
|
|
btn.onClick.AddListener(() =>
|
|
{
|
|
go.SetActive(true);
|
|
gameObject.SetActive(false);
|
|
});
|
|
}
|
|
|
|
// Update is called once per frame
|
|
void Update()
|
|
{
|
|
|
|
}
|
|
}
|