Exemplo n.º 1
0
 // Update is called once per frame
 void Update()
 {
     timer -= Time.deltaTime;
     if (timer <= 0)
     {
         instance = this;
         this.loadRoom();
         timer = 2.0f;
     }
 }
Exemplo n.º 2
0
 private void Awake()
 {
     instance = this;
     this.loadRoom();
     gridimage.OnClickL = null;
     gridimage.OnClickR = null;
     gridimage.OnEnter  = null;
     gridimage.OnExit   = null;
     //添加鼠标点击事件
     gridimage.OnClickL += RoomImage_OnClickL;
 }