22 lines
449 B
C#
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("<22><><EFBFBD><EFBFBD>");
|
|||
|
transform.GetComponent<PlayerMove>().StartMove();
|
|||
|
}
|
|||
|
}
|