/// <summary> /// 수량을 초과했는지 검사하는 함수 /// </summary> void CheckCount() { if (IsExcessCount()) { itemShopPanel.SetInteractable(false); } else { itemShopPanel.SetInteractable(true); } }
/// <summary> /// 구매한 버프인지 검사 /// </summary> /// <returns></returns> void CheckAlreadyBuy() { BuffData temp = saveData.buffDatas.Find(delegate(BuffData data) { return(data.weaponIcon == buffData.weaponIcon && data.buffType == buffData.buffType); }); if (temp == null) { itemShopPanel.SetInteractable(true); } else { itemShopPanel.SetInteractable(false); } }