Ejemplo n.º 1
0
 // Manage weapon active status.
 public void Toggle(bool active)
 {
     if (active)
     {
         AudioSource.PlayClipAtPoint(pickSound, transform.position, 0.5f);
     }
     weaponHud.Toggle(active);
     UpdateHud();
 }
Ejemplo n.º 2
0
 public void Toggle(bool active)
 {
     if (active)
     {
         SoundManager.Instance.PlayOneShotEffect((int)pickSound, transform.position, 0.5f);
     }
     weaponHUD.Toggle(active);
     UpdateHUD();
 }