internal void AddResource(GameResourceType type, uint value) { Resource.Add(type, (int)value); if (type > 0) { MainTipManager.AddTip(string.Format("|获得|{0}|{1}||x{2}", HSTypes.I2ResourceColor((int)type), HSTypes.I2Resource((int)type), value), "White"); AchieveBook.CheckByCheckType("resource"); } }
public void AddItem(Item _item, int count) { // 코인 아이템일 경우 if (_item.index == 1) { coin.Add(count); return; } // 잔여 슬롯 부족 시 버림 === 시간 여유 된다면 소거할 아이템 선택하여 버리게 바꿀것 if (inventoryCount >= Player.inventoryMax) { return; } for (int i = 0; i < inventory.Count; i++) { // 빈칸일경우 넣고 종료 if (inventory[i].isEmpty) { inventory[i].item = _item; inventory[i].count = count; break; } } }
/// <summary> /// 부활 /// </summary> public void Resurrect() { // 초기화 stunCount = 0; isDead = false; // 라이프 지급 life.Add(5); // UI 제거 infoUI.dead.gameObject.SetActive(false); }
internal void AddResource(GameResourceType type, uint value) { Resource.Add(type, value); MainTipManager.AddTip(string.Format("|获得|{0}|{1}||x{2}", HSTypes.I2ResourceColor((int)type), HSTypes.I2Resource((int)type), value), "White"); }