Пример #1
0
 // Manage weapon active status.
 public void Toggle(bool active)
 {
     if (active)
     {
         AudioSource.PlayClipAtPoint(pickSound, transform.position, 0.5f);
     }
     weaponHud.Toggle(active);
     UpdateHud();
 }
Пример #2
0
 public void Toggle(bool active)
 {
     if (active)
     {
         SoundManager.Instance.PlayOneShotEffect((int)pickSound, transform.position, 0.5f);
     }
     weaponHUD.Toggle(active);
     UpdateHUD();
 }