01.文字、按键

1.文字的修改
  GetComponent<Text>().text = "cmd";

2.按键的生成
  void Start()
  {        
        GetComponent<Button>().onClick.AddListener(() =>
        {            
            Debug.Log("press");
        });
    }

猜你喜欢

转载自blog.csdn.net/weixin_33787529/article/details/87132019
01.