public void SetCrystal(CrystalScript.CrystalType type) { transform.Find("Crystals").Find(type.ToString()).GetComponent <Image>().sprite = Crystals[type]; }