public GameTileContent Get(GameTileContentType type) { switch (type) { case GameTileContentType.Empty: return(Get(emptyPrefab)); case GameTileContentType.Destination: return(Get(destinationPrefab)); } Debug.Assert(false, "Unspported type: " + type); return(null); }
public GameTileContent Get(GameTileContentType type) { switch (type) { case GameTileContentType.Destination: return(Get(destinationPrefab)); case GameTileContentType.Empty: return(Get(emptyPrefab)); case GameTileContentType.Wall: return(Get(wallPrefab)); case GameTileContentType.SpawnPoint: return(Get(spawnPointPrefab)); } Debug.Assert(false, "Unsupported non-tower type: " + type); return(null); }
public GameTileContent Get(GameTileContentType type) { switch (type) { case GameTileContentType.Destination: return(Get(destionationPrefab)); case GameTileContentType.Empty: return(Get(emptyPrefab)); case GameTileContentType.Wall: return(Get(wallPrefab)); } Debug.Assert(false, "未定义的格子类型: " + type); return(null); }
public GameTileContent Get(GameTileContentType type) { switch (type) { case GameTileContentType.Destination: return(Get(destinationPrefab)); case GameTileContentType.Empty: return(Get(emptyPrefab)); case GameTileContentType.Wall: return(Get(wallPrefab)); } return(null); }
public GameTileContent Get(GameTileContentType type) { switch (type) { case GameTileContentType.Destination: return(Get(destinationPrefab)); case GameTileContentType.Empty: return(Get(emptyPrefab)); case GameTileContentType.Wall: return(Get(highWallPrefab)); case GameTileContentType.Spawn: return(Get(spawnPrefab)); case GameTileContentType.Tree: return(Get(treePrefab)); //case GameTileContentType.Tower: return Get(towerPrefab); } Debug.Assert(false, "Unsupported non-tower type: " + type); return(null); }