public void FinishPurchaseWeapon(WeaponSlot weaponSlot) { Debug.Assert(playerScoreInfo.CanBuyWeapon(weaponBeingPurchased)); playerScoreInfo.Decrement(weaponBeingPurchased.scoreWorth); weaponSlot.SetWeapon(weaponBeingPurchased); weaponBeingPurchased = null; ShowSelectWeapon(); }
public void SetWeaponTab(WeaponSlot slot, WeaponDataSO weapon) { slot.gameObject.SetActive(true); slot.SetWeapon(weapon); }