_TheStrongestSnail/TheStrongestSnail/Assets/Scripts/Battle_Royale/HouseBtn.cs
2024-11-13 02:03:11 +08:00

27 lines
584 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class HouseBtn : MonoBehaviour
{
public Button btn;
public GameObject Mask;
// Start is called before the first frame update
void Start()
{
btn=GetComponent<Button>();
btn.onClick.AddListener(OnClickBtn);
}
void OnClickBtn()
{
Debug.Log("µã»÷");
transform.GetComponent<PlayerMove>().StartMove();
PlayerMovePos.instance.HadChoise=true;
MaskContro.instance.SetMask(true);
}
}