#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
1.内部类方式 class MyOnClickListener implements View.OnClickListener{ /** * Called when a view has been clicked. * * @param v The view that was clicked. */ @Override public void onClick(View v) { }} MyOnClickListener l = new MyOnClickListener(); bt.setOnC