|
@@ -334,14 +334,14 @@ public class GameManager : MonoBehaviour
|
|
|
dashCharges += (int)data;
|
|
dashCharges += (int)data;
|
|
|
player.rushChargeTotalNums += (int)data;
|
|
player.rushChargeTotalNums += (int)data;
|
|
|
player.rushChargeNums = player.rushChargeTotalNums;
|
|
player.rushChargeNums = player.rushChargeTotalNums;
|
|
|
- for (int j = 0; i < player.rushChargeTotalNums; j++)
|
|
|
|
|
|
|
+ for (int j = 0; j < player.rushChargeTotalNums; j++)
|
|
|
{
|
|
{
|
|
|
- if (player.uiRush.childCount <= i)
|
|
|
|
|
|
|
+ if (player.uiRush.childCount <= j)
|
|
|
{
|
|
{
|
|
|
Transform rushUIchid = Instantiate(player.uiRush.GetChild(0), player.uiRush);
|
|
Transform rushUIchid = Instantiate(player.uiRush.GetChild(0), player.uiRush);
|
|
|
- rushUIchid.localPosition = player.uiRush.GetChild(0).transform.localPosition + Vector3.right * 50 * i;
|
|
|
|
|
|
|
+ rushUIchid.localPosition = player.uiRush.GetChild(0).transform.localPosition + Vector3.right * 50 * j;
|
|
|
}
|
|
}
|
|
|
- UIController.ChangeImageFill(player.uiRush.GetChild(i).GetComponent<Image>(), 1);
|
|
|
|
|
|
|
+ UIController.ChangeImageFill(player.uiRush.GetChild(j).GetComponent<Image>(), 1);
|
|
|
}
|
|
}
|
|
|
break;
|
|
break;
|
|
|
case "":
|
|
case "":
|