private void SetButtonImage() { switch (progressService.GetProgressForLevel(levelNumber)) { case 0: GetComponent <SpriteRenderer>().sprite = spriteEmpty; break; case 1: GetComponent <SpriteRenderer>().sprite = spriteBronze; break; case 2: GetComponent <SpriteRenderer>().sprite = spriteSilver; break; case 3: GetComponent <SpriteRenderer>().sprite = spriteGold; break; default: GetComponent <SpriteRenderer>().sprite = spriteLocked; break; } }