private void SetHUDLevelStar() { levelStar = levelStarPrefab.GetComponent <Star>(); Color[] starColors = new Color[] { levelStar.GetColor() }; int[] starCounts = new int[] { starsCollected[(int)levelStar.starType] }; hudOverlay.SetStars(starColors, starCounts); }
private void SetHUDLevelStar() { levelStar = levelStarPrefab.GetComponent <Star>(); hudOverlay.SetStars(levelStar.GetColor(), starsCollected[(int)levelStar.starType]); }