36 lines
859 B
C#
36 lines
859 B
C#
using Cysharp.Threading.Tasks.Triggers;
|
|
using System;
|
|
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
using static MapManager;
|
|
|
|
public class UIBaseItem : MonoBehaviour
|
|
{
|
|
public SceneArea sceneArea { get; set; }
|
|
public EditCellType editCellType { get; set; }
|
|
|
|
public Button btnClickSelf; //µã»÷Ò»Ìõ
|
|
protected virtual void Awake()
|
|
{
|
|
if (btnClickSelf == null) return;
|
|
btnClickSelf.onClick.AddListener(OnClickItemSelf);
|
|
}
|
|
|
|
public virtual void SetItemPos(Vector2Int pos) {
|
|
|
|
}
|
|
|
|
internal virtual void SetSelectPosItem()
|
|
{
|
|
|
|
}
|
|
|
|
public virtual void OnClickItemSelf()
|
|
{
|
|
if (sceneArea == null) return;
|
|
MapManager.Instance.MoveToCamera(sceneArea.transform.position.x,sceneArea.transform.position.y);
|
|
}
|
|
}
|