public void MakeLevelNotInteractable(LevelPoint level) { if (level.GetComponent <Image> () != null) { level.GetComponent <Image> ().sprite = lockSprite; } else { level.GetComponent <SpriteRenderer>().sprite = lockSprite; } }
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; }