Przeglądaj źródła

编辑器新增一个怪物

wgl 6 miesięcy temu
rodzic
commit
61319f5479

+ 3 - 3
ActionTowerDefense/Assets/GameLevelEditor/GameMap/CoreScripts/GameMapTile.cs

@@ -42,10 +42,10 @@ public class GameMapTile
 
 	public enum Type { Null = 0,  Tower=1, Enemy=2}
 	public Type type = Type.Null;   // the runtime might use something like this to identify what the placed tile means
-	public enum CH {Tower=0, EnemyTower = 1, Enemy_Arrow = 2, Enemy_Giant = 3, Enemy_Sword = 4, Enemy_11001, Enemy_11002, Enemy_11004, Enemy_11005, Enemy_11008};            // this value could depend on the chosen type. For example, if NPC then this could indicate which NPC prefab to spawn from an array of NPC prefabs.
-	public CH ch;
+    public enum CH { Tower = 0, EnemyTower = 1, Enemy_Arrow = 2, Enemy_Giant = 3, Enemy_Sword = 4, Enemy_11001, Enemy_11002, Enemy_11004, Enemy_11005, Enemy_11008, Enemy_11006 };            // this value could depend on the chosen type. For example, if NPC then this could indicate which NPC prefab to spawn from an array of NPC prefabs.
+    public CH ch;
 
-	[GameMapTilePreview] public Color color = Color.white;
+    [GameMapTilePreview] public Color color = Color.white;
 	public Vector2 radius;
 	public string name;
 	[HideInInspector]public int index = -1;