Esempio n. 1
0
    private void Update()
    {
        for (int i = 0; i < images.Length; i++)
        {
            if (i == playerPowerUp.GetPowerUpPoint() - 1)
            {
                images[i].color = activColor;
            }
            else
            {
                images[i].color = Color.clear;
            }
        }

        for (int i = 0; i < images.Length; i++)
        {
            if (playerPowerUp.GetConditionArray()[i + 1])
            {
                images[i].color = usedColor;
            }
        }
    }
 private void Update()
 {
     pointCount.text = "Point " + playerPowerUp.GetPowerUpPoint();
 }