_TheStrongestSnail/TheStrongestSnail/Assets/Scripts/Battle_Royale/HouseBtn.cs
2024-11-12 19:43:17 +08:00

22 lines
449 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class HouseBtn : MonoBehaviour
{
public Button btn;
// 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();
}
}