public void InitHelperPanels(bool set) { // Debug.Log($"Init helper panels {gameObject.name} {set}\n"); if (!set) { if (rune_buttons != null) { rune_buttons.gameObject.SetActive(false); } if (firearm && firearm.ammo_panel) { firearm.ammo_panel.gameObject.SetActive(false); } return; } if (stats.ammo != -1) { firearm.setAmmo((int)(Mathf.Max(1, stats.ammo) * (1f + StaticRune.GetTimeBonus(rune.runetype, rune.toy_type)))); firearm.InitAmmoPanel(); } else { InitRuneButtons(); } }