|
@@ -22,6 +22,9 @@ public class CockUIItemComp : MonoBehaviour
|
|
|
public StarComp Start2;
|
|
|
public StarComp Start3;
|
|
|
|
|
|
+ public Text nameText;
|
|
|
+
|
|
|
+
|
|
|
public Text timesText;
|
|
|
|
|
|
public Text diamondText;
|
|
@@ -137,6 +140,10 @@ public class CockUIItemComp : MonoBehaviour
|
|
|
private void DisplayStars(int cookId)
|
|
|
{
|
|
|
var cockType = ConfigManager.Instance.cockTypesMap[cookId];
|
|
|
+
|
|
|
+ Debug.Log("cockId" + cookId + "hp" + cockType.hpStar + "atk" + cockType.atkStar);
|
|
|
+
|
|
|
+
|
|
|
Start1.setStar(cockType.atkStar);
|
|
|
Start2.setStar(cockType.hpStar);
|
|
|
Start3.setStar(cockType.intervalStar);
|