格子划分正常
This commit is contained in:
@@ -6,67 +6,13 @@ using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Text;
|
||||
using System.Xml;
|
||||
using UnityEditor;
|
||||
using UnityEngine;
|
||||
using UnityEngine.EventSystems;
|
||||
using UnityEngine.Networking;
|
||||
using UnityEngine.Tilemaps;
|
||||
using UnityEngine.UI;
|
||||
|
||||
public partial class MapManager : MonoBehaviour
|
||||
{
|
||||
public enum CellType
|
||||
{
|
||||
/// <summary>
|
||||
/// <20><>Ч<EFBFBD><D0A7>
|
||||
/// </summary>
|
||||
None = 0,
|
||||
|
||||
/// <summary>
|
||||
/// <20>ƶ<EFBFBD>
|
||||
/// </summary>
|
||||
Move = 1,
|
||||
|
||||
/// <summary>
|
||||
/// <20>赲
|
||||
/// </summary>
|
||||
Obstacle = 2,
|
||||
|
||||
/// <summary>
|
||||
/// <20><><EFBFBD><EFBFBD>
|
||||
/// </summary>
|
||||
Hide = 4,
|
||||
|
||||
/// <summary>
|
||||
/// <20>н<EFBFBD>ɫռ<C9AB>ݣ<EFBFBD><DDA3><EFBFBD><EFBFBD><EFBFBD>ʱ<EFBFBD><CAB1>̬<EFBFBD>仯ʱ<E4BBAF><CAB1><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
/// </summary>
|
||||
HadRole = 8,
|
||||
|
||||
/// <summary>
|
||||
/// <20><>ȫ<EFBFBD><C8AB>
|
||||
/// </summary>
|
||||
Safe = 16,
|
||||
|
||||
/// <summary>
|
||||
/// <20><>̯<EFBFBD><CCAF><EFBFBD><EFBFBD>
|
||||
/// </summary>
|
||||
Stall = 32,
|
||||
}
|
||||
|
||||
[Flags]
|
||||
public enum CellLayer
|
||||
{
|
||||
Move = 1, //<2F>ƶ<EFBFBD>
|
||||
Obstacle = 2, //<2F>赲
|
||||
Hide = 4, //<2F><><EFBFBD><EFBFBD>
|
||||
Safe = 16, //<2F><>ȫ<EFBFBD><C8AB>
|
||||
Stall = 32, //<2F><>̯
|
||||
Audio = 64, //<2F><>Ч
|
||||
Trigger = 128, //<2F><><EFBFBD><EFBFBD>
|
||||
Monster = 256 //<2F><><EFBFBD><EFBFBD>
|
||||
}
|
||||
|
||||
|
||||
//<2F><>ͼ<EFBFBD><CDBC><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
public const int CELLSCALE = 100;
|
||||
|
||||
@@ -75,6 +21,7 @@ public partial class MapManager : MonoBehaviour
|
||||
//public delegate void CloseMapCallback();
|
||||
//public CloseMapCallback onCloseMapCallback;
|
||||
|
||||
|
||||
private static MapManager _mapManager = null;
|
||||
public static MapManager Instance
|
||||
{
|
||||
@@ -290,7 +237,7 @@ public partial class MapManager : MonoBehaviour
|
||||
bool bHoverUI = EventSystem.current != null && EventSystem.current.IsPointerOverGameObject();
|
||||
if (bHoverUI)
|
||||
return;
|
||||
|
||||
UpdateCamera();
|
||||
if (_curEditCellType != EditCellType.None)
|
||||
{
|
||||
EditSpecialMapPoint(_curEditCellType);
|
||||
|
||||
Reference in New Issue
Block a user