Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public Sprite[] dirtTiles
- public Sprite[] fossilTiles
- public Sprite[] rockTiles
- // store your sprites in these
- public sprite getTile(string tileSet, int tileNum){
- switch(tileSet){
- case "dirt":
- return dirtTiles[tileNum]
- case "fossil":
- return fossilTiles[fossilNum]
- case "rock":
- return rockTiles[tileNum]
- }
Add Comment
Please, Sign In to add comment