53 lines
1.2 KiB
C#
53 lines
1.2 KiB
C#
|
using System.Collections;
|
|||
|
using System.Collections.Generic;
|
|||
|
using UnityEngine;
|
|||
|
using UnityEngine.UI;
|
|||
|
|
|||
|
public class AssetsPanel : MonoBehaviour
|
|||
|
{
|
|||
|
[Header("<22><>ť<EFBFBD><C5A5><EFBFBD>ǵö<C7B5>Ӧ<EFBFBD><D3A6>ϵ")]
|
|||
|
public Button but1;
|
|||
|
public Button but2;
|
|||
|
public Button but3;
|
|||
|
public Button but4;
|
|||
|
[Header("<22><>Ҫ<EFBFBD>Ķ<EFBFBD><C4B6><EFBFBD><EFBFBD><EFBFBD>Ŀǰ<C4BF><C7B0>ֻ<EFBFBD><D6BB>Ҫһ<D2AA><D2BB>")]
|
|||
|
public GameObject mygameObject;
|
|||
|
// Start is called before the first frame update
|
|||
|
void Start()
|
|||
|
{
|
|||
|
if (but1 != null)
|
|||
|
{
|
|||
|
but1.onClick.AddListener(() => {
|
|||
|
Debug.LogError("but1");
|
|||
|
mygameObject.SetActive(true);
|
|||
|
});
|
|||
|
}
|
|||
|
|
|||
|
if (but2 != null)
|
|||
|
{
|
|||
|
but2.onClick.AddListener(() => {
|
|||
|
Debug.LogError("but1");
|
|||
|
mygameObject.SetActive(true);
|
|||
|
});
|
|||
|
}
|
|||
|
|
|||
|
if (but3 != null)
|
|||
|
{
|
|||
|
but3.onClick.AddListener(() => {
|
|||
|
Debug.LogError("but1");
|
|||
|
mygameObject.SetActive(true);
|
|||
|
});
|
|||
|
}
|
|||
|
|
|||
|
if (but4 != null)
|
|||
|
{
|
|||
|
but4.onClick.AddListener(() => {
|
|||
|
Debug.LogError("but1");
|
|||
|
mygameObject.SetActive(true);
|
|||
|
});
|
|||
|
}
|
|||
|
}
|
|||
|
|
|||
|
|
|||
|
}
|