diff options
author | chai <215380520@qq.com> | 2023-05-12 10:32:11 +0800 |
---|---|---|
committer | chai <215380520@qq.com> | 2023-05-12 10:32:11 +0800 |
commit | 2fc9585797067730f28b03b0727bf05f9deed091 (patch) | |
tree | 8807e37b85ba922045eaa17ac445dd0a1d2d730c /marching/Assets/Scripts/Battle | |
parent | 2a1cd4fda8a4a8e649910d16b4dfa1ce7ae63543 (diff) |
+ worldline keepers
Diffstat (limited to 'marching/Assets/Scripts/Battle')
-rw-r--r-- | marching/Assets/Scripts/Battle/BattleManager.cs | 10 | ||||
-rw-r--r-- | marching/Assets/Scripts/Battle/BattleManager.cs.meta | 11 | ||||
-rw-r--r-- | marching/Assets/Scripts/Battle/GridMap.cs | 47 | ||||
-rw-r--r-- | marching/Assets/Scripts/Battle/GridMap.cs.meta | 11 | ||||
-rw-r--r-- | marching/Assets/Scripts/Battle/SceneManager.cs | 11 | ||||
-rw-r--r-- | marching/Assets/Scripts/Battle/SceneManager.cs.meta | 11 |
6 files changed, 0 insertions, 101 deletions
diff --git a/marching/Assets/Scripts/Battle/BattleManager.cs b/marching/Assets/Scripts/Battle/BattleManager.cs deleted file mode 100644 index 8372139..0000000 --- a/marching/Assets/Scripts/Battle/BattleManager.cs +++ /dev/null @@ -1,10 +0,0 @@ -using System.Collections; -using System.Collections.Generic; -using UnityEngine; - -public class BattleManager : Singleton<BattleManager> -{ - - - -}
\ No newline at end of file diff --git a/marching/Assets/Scripts/Battle/BattleManager.cs.meta b/marching/Assets/Scripts/Battle/BattleManager.cs.meta deleted file mode 100644 index a89b003..0000000 --- a/marching/Assets/Scripts/Battle/BattleManager.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: bea0e35a4b2fa264698b0e2816565545 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/marching/Assets/Scripts/Battle/GridMap.cs b/marching/Assets/Scripts/Battle/GridMap.cs deleted file mode 100644 index c99bf4a..0000000 --- a/marching/Assets/Scripts/Battle/GridMap.cs +++ /dev/null @@ -1,47 +0,0 @@ -using System; -using System.Collections; -using System.Collections.Generic; -using UnityEngine; - -/// <summary> -/// 用Grid托管需要实现这个接口 -/// </summary> -public interface IGridMapObject -{ - // 坐标,transform.position - public Vector2 coordinate { get; } -} - -public class GridCell -{ - public List<IGridMapObject> m_Object; -} - -/// <summary> -/// 用网格划分场景,不依赖形状,只依赖位置 -/// </summary> -public class GridMap -{ - - // 单个cell的大小 - private Vector2 m_CellSize; - - // 整个grid的范围 x, y, xcount, ycount - private Vector4 m_Range; - - // 左上角开始索引 - private List<GridCell> m_GridCells; - - public GridMap() - { - m_GridCells = new List<GridCell>(); - } - - private int GetGridIndex(Vector2 pos) - { - - - return -1; - } - -}
\ No newline at end of file diff --git a/marching/Assets/Scripts/Battle/GridMap.cs.meta b/marching/Assets/Scripts/Battle/GridMap.cs.meta deleted file mode 100644 index 989a829..0000000 --- a/marching/Assets/Scripts/Battle/GridMap.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 66e52a379c253b54d896c3a5631bfdfa -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/marching/Assets/Scripts/Battle/SceneManager.cs b/marching/Assets/Scripts/Battle/SceneManager.cs deleted file mode 100644 index 9ed2fc9..0000000 --- a/marching/Assets/Scripts/Battle/SceneManager.cs +++ /dev/null @@ -1,11 +0,0 @@ -using System.Collections; -using System.Collections.Generic; -using UnityEngine; - -public class SceneManager : Singleton<SceneManager> -{ - - // 场景内所有对象用这个结构维护 - private GridMap m_GridMap; - -}
\ No newline at end of file diff --git a/marching/Assets/Scripts/Battle/SceneManager.cs.meta b/marching/Assets/Scripts/Battle/SceneManager.cs.meta deleted file mode 100644 index fe1604c..0000000 --- a/marching/Assets/Scripts/Battle/SceneManager.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 4d3730897865ceb44a87a57742832f78 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: |