public override void Buy() { if (!Bought && c.Money >= Cost && UnlockedAtLevel <= c.LevelsUnlocked) { Bought = true; c.Money -= Cost; ShipsManagement s = c.gameObject.GetComponent <ShipsManagement>(); s.Weapons.Add(Weapon); s.setWeaponSwitching(); c.Shop(); } }
public void OnEndDrag(PointerEventData eventData) { Sm.setWeaponSwitching(); cg.blocksRaycasts = true; cg.alpha = 1f; }