|
@@ -42,10 +42,10 @@ public class GameMapTile
|
|
|
|
|
|
|
|
public enum Type { Null = 0, Tower=1, Enemy=2}
|
|
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 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 Vector2 radius;
|
|
|
public string name;
|
|
public string name;
|
|
|
[HideInInspector]public int index = -1;
|
|
[HideInInspector]public int index = -1;
|