37 lines
887 B
C#
37 lines
887 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
|
|
public class HouseBtn : MonoBehaviour
|
|
{
|
|
public int escapeId;//游戏id
|
|
public int roomNo;//房间号
|
|
public float roomBeansCoin;//房间里面的钱
|
|
public Button btn;
|
|
public GameObject Mask;
|
|
public RectTransform door;
|
|
public GameObject text;
|
|
//public selectLatest511.GameEscapeRoomResponseVo gameEscapeRoomResponseVo;
|
|
public bool DoorIsOpen;
|
|
// Start is called before the first frame update
|
|
void Start()
|
|
{
|
|
if (GetComponent<Button>()!= null)
|
|
{
|
|
btn=GetComponent<Button>();
|
|
//btn.onClick.AddListener(OnClickBtn);
|
|
}
|
|
|
|
|
|
}
|
|
|
|
public void OnClickBtn()
|
|
{
|
|
transform.GetComponent<PlayerMove>().StartMove();
|
|
PlayerMovePos.instance.HadChoise=true;
|
|
|
|
|
|
}
|
|
}
|