热门

最新

红包

立Flag

投票

同城

我的

发布
qq_64473156
启丽一把球顿
4 年前
trueqq_64473156

ing System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class new2 : MonoBehaviour
{
// Start is called before the first frame update
public GameObject bg,jieshao;
public Button btnw,btnl,btnd;
public Image img;
public Text txt;
public Button back;
public Sprite w,l,d;
private void Awake()
{
btnw.onClick.AddListener(()=>
{
bg.SetActive(false);
jieshao.SetActive(true);
img.sprite=w;
txt.text="吴焕先(1907.8-1935.8.21),河南省信阳市新县人。鄂豫陕苏区创建人,中国工农红军杰出指挥员 。民国十四年(1925年)加入中国共产党。";
});
}
void Start()
{
bg.SetActive(true);
}
// Update is called once per frame
void Update()
{

}
}

CSDN App 扫码分享
分享
评论
点赞
打赏
  • 复制链接
  • 举报
下一条:
using System.Collections;using System.Collections.Generic;using UnityEngine;using UnityEngine.UI;public class new1 : MonoBehaviour{ // Start is called before the first frame update public GameObject m,l,r; private void Start() { m.SetActive(true); l.SetActive(false); r.SetActive(false); } public void lOnClick() { m.SetActive(false); l.SetActive(true); } public void rOnClick() { m.SetActive(false); r.SetActive(true); } public void CloseOnClick() { l.SetActive(false); r.SetActive(false); m.SetActive(true); } }
立即登录