Exemple #1
0
 public void MakeLevelNotInteractable(LevelPoint level)
 {
     if (level.GetComponent <Image> () != null)
     {
         level.GetComponent <Image> ().sprite = lockSprite;
     }
     else
     {
         level.GetComponent <SpriteRenderer>().sprite = lockSprite;
     }
 }
Exemple #2
0
 public void MakeLevelButtonInteractable(LevelPoint level)
 {
     if (level.GetComponent <Image> () != null)
     {
         level.GetComponent <Image> ().sprite = unlockSprite;
     }
     else
     {
         level.GetComponent <SpriteRenderer>().sprite = unlockSprite;
     }
     //level.GetComponent<Button>().interactable = true;
 }