dd
This commit is contained in:
@@ -4,6 +4,7 @@ using System.Collections.Generic;
|
||||
using UnityEditor;
|
||||
using UnityEngine;
|
||||
using static MapManager;
|
||||
using static UnityEditor.PlayerSettings;
|
||||
|
||||
public class SceneArea : MonoBehaviour
|
||||
{
|
||||
@@ -18,12 +19,24 @@ public class SceneArea : MonoBehaviour
|
||||
public void OnPointerClick()
|
||||
{
|
||||
Debug.Log($"ѡ<><D1A1><EFBFBD><EFBFBD><EFBFBD><EFBFBD>...");
|
||||
switch (editCellType)
|
||||
{
|
||||
case EditCellType.MonsterArea:
|
||||
UIWindow.Instance.uiMonstersPanel.SelectMonsterPos(Idx);
|
||||
break;
|
||||
}
|
||||
|
||||
}
|
||||
public void OnPointerDrag(Vector3 mousePosition)
|
||||
{
|
||||
Vector2Int pos = MapManager.Instance.map.selector.GetMouseByCell();
|
||||
SetAreaPos(pos);
|
||||
switch (editCellType)
|
||||
{
|
||||
case EditCellType.MonsterArea:
|
||||
UIWindow.Instance.uiMonstersPanel.UpdateMonsterPos(Idx,pos);
|
||||
break;
|
||||
}
|
||||
|
||||
}
|
||||
public void OnPointerUp()
|
||||
|
||||
Reference in New Issue
Block a user