Guest User

Untitled

a guest
May 21st, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. private void DrawClassBorder() {
  2. switch(currentCard.cardClass) {
  3. case CardData.ClassLimitation.none:
  4. classBorderTexture.SetPixel(0, 0, defaultColor);
  5. break;
  6. case CardData.ClassLimitation.rogue:
  7. classBorderTexture.SetPixel(0, 0, rogueColor);
  8. break;
  9. case CardData.ClassLimitation.warrior:
  10. classBorderTexture.SetPixel(0, 0, warriorColor);
  11. break;
  12. case CardData.ClassLimitation.mage:
  13. classBorderTexture.SetPixel(0, 0, mageColor);
  14. break;
  15. default:
  16. classBorderTexture.SetPixel(0, 0, defaultColor);
  17. break;
  18. }
  19. classBorderTexture.Apply();
  20. GUI.DrawTexture(classBorderRect, classBorderTexture);
  21. }
Add Comment
Please, Sign In to add comment