2024-11-12 19:43:17 +08:00
|
|
|
|
using System.Collections;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using UnityEngine;
|
|
|
|
|
using UnityEngine.UI;
|
|
|
|
|
|
|
|
|
|
public class HouseBtn : MonoBehaviour
|
|
|
|
|
{
|
2024-11-15 23:31:54 +08:00
|
|
|
|
public int escapeId;//<2F><>Ϸid
|
|
|
|
|
public int roomNo;//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
public float roomBeansCoin;//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ǯ
|
2024-11-12 19:43:17 +08:00
|
|
|
|
public Button btn;
|
2024-11-13 02:03:11 +08:00
|
|
|
|
public GameObject Mask;
|
2024-11-14 18:11:08 +08:00
|
|
|
|
public RectTransform door;
|
2024-11-15 23:31:54 +08:00
|
|
|
|
public GameObject text;
|
2024-11-16 02:05:07 +08:00
|
|
|
|
public GameObject post;
|
2024-11-16 05:56:57 +08:00
|
|
|
|
public GameObject bg;
|
|
|
|
|
public GameObject wn;
|
2024-11-15 23:31:54 +08:00
|
|
|
|
//public selectLatest511.GameEscapeRoomResponseVo gameEscapeRoomResponseVo;
|
2024-11-14 18:11:08 +08:00
|
|
|
|
public bool DoorIsOpen;
|
2024-11-18 16:53:39 +08:00
|
|
|
|
public PlayerMovePos woniuMovePos;
|
2024-11-12 19:43:17 +08:00
|
|
|
|
// Start is called before the first frame update
|
|
|
|
|
void Start()
|
|
|
|
|
{
|
2024-11-14 18:11:08 +08:00
|
|
|
|
if (GetComponent<Button>()!= null)
|
|
|
|
|
{
|
|
|
|
|
btn=GetComponent<Button>();
|
2024-11-15 23:31:54 +08:00
|
|
|
|
//btn.onClick.AddListener(OnClickBtn);
|
2024-11-14 18:11:08 +08:00
|
|
|
|
}
|
|
|
|
|
|
2024-11-13 02:03:11 +08:00
|
|
|
|
|
2024-11-12 19:43:17 +08:00
|
|
|
|
}
|
|
|
|
|
|
2024-11-15 23:31:54 +08:00
|
|
|
|
public void OnClickBtn()
|
2024-11-12 19:43:17 +08:00
|
|
|
|
{
|
2024-11-16 05:56:57 +08:00
|
|
|
|
if (!bg.GetComponent<AllHouseContro>().is_jisha)
|
|
|
|
|
{
|
|
|
|
|
Debug.Log("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѡ<EFBFBD>䡪<F1B7BFBC><E4A1AA><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>");
|
|
|
|
|
transform.GetComponent<PlayerMove>().StartMove();
|
2024-11-18 16:53:39 +08:00
|
|
|
|
woniuMovePos.HadChoise = true;
|
2024-11-16 05:56:57 +08:00
|
|
|
|
}
|
|
|
|
|
|
2024-11-13 18:01:18 +08:00
|
|
|
|
|
2024-11-13 02:03:11 +08:00
|
|
|
|
|
2024-11-12 19:43:17 +08:00
|
|
|
|
}
|
|
|
|
|
}
|