protected void Locked(Transform cell, int talentId) { Image component = cell.FindChild("imgMaterial").GetComponent <Image>(); Text component2 = cell.FindChild("texMaterial").GetComponent <Text>(); ResourceManager.SetSprite(component, PetEvoGlobal.GetMaterialSprite(talentId, 1)); component2.set_text("x" + PetEvoGlobal.GetMaterialNum(talentId, 1).ToString()); }