26 lines
598 B
C#
26 lines
598 B
C#
using System;
|
|
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
using static MapManager;
|
|
|
|
public class UIBaseItem : MonoBehaviour
|
|
{
|
|
public SceneArea sceneArea { get; set; }
|
|
public EditCellType editCellType { get; set; }
|
|
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);
|
|
}
|
|
}
|