三种方法给Button添加点击事件 (一)通过button的id,添加继承View.OnClickListener的监听实现 <Button android:id="@+id/btn_button2" android:text="按钮2" android:layout_width="match_parent" android:layout_height="wrap_content" /> public class
#pragma strict var buttonTexture:Texture2D; private var str:String; private var frameTime:int; function Start () { //初始化赋值 str="点击按钮吧亲"; } function Update () { } function OnGUI() { //显示提示信息内容 GUI.Label(Rect(10,10,Screen.width,30),str); if(GUI.Bu