nutter666

tile visuals

Sep 24th, 2021 (edited)
401
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.32 KB | None | 0 0
  1. public Sprite[] dirtTiles
  2. public Sprite[] fossilTiles
  3. public Sprite[] rockTiles
  4. // store your sprites in these
  5.  
  6.  
  7. public sprite getTile(string tileSet, int tileNum){
  8. switch(tileSet){
  9. case "dirt":
  10. return dirtTiles[tileNum]
  11.  
  12. case "fossil":
  13. return fossilTiles[fossilNum]
  14.  
  15. case "rock":
  16. return rockTiles[tileNum]
  17. }
Add Comment
Please, Sign In to add comment