using UnityEngine; using System.Collections; public class Gui : MonoBehaviour { public Texture2D buttonTexture; private string str; private int frameTime; // Use this for initialization void Start () { str="请您点击按钮"; } // Update is called once pe
#pragma strict var str:String; //接收外部复制贴图 var imageTexture:Texture; private var imageWidth:int; private var imageHeight:int; private var screenWidth:int; private var screenHeight:int; function Start () { //得到屏幕宽高 screenWidth=Screen.width; screenHeigh
% --- Executes on button press in pushbutton1. function pushbutton1_Callback(hObject, eventdata, handles) % hObject handle to pushbutton1 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles a