示例#1
0
 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);
 }
示例#2
0
 private void SetHUDLevelStar()
 {
     levelStar = levelStarPrefab.GetComponent <Star>();
     hudOverlay.SetStars(levelStar.GetColor(), starsCollected[(int)levelStar.starType]);
 }