예제 #1
0
파일: Hud.cs 프로젝트: lucaspopp0/starrrgh
 public void UsePowerup(PowerupId id, float duration = 1f)
 {
     powerupIndicators[id.GetHashCode()].Use();
 }
예제 #2
0
파일: Hud.cs 프로젝트: lucaspopp0/starrrgh
 public void ActivatePowerup(PowerupId id, float duration = 1)
 {
     powerupIndicators[id.GetHashCode()].Activate(duration);
 }
예제 #3
0
파일: Hud.cs 프로젝트: lucaspopp0/starrrgh
 public void GainPowerup(PowerupId id, int amountGained)
 {
     powerupIndicators[id.GetHashCode()].Get(amountGained);
 }