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