private void OnFireSkill(TackleContent skillType) { for (int i = 0; i < InventoryManager.GetInstance.GetUsedSlots.Count; i++) { if (InventoryManager.GetInstance.GetUsedSlots[i].SlotTackleType == skillType) { SkillSlot slot = (SkillSlot)InventoryManager.GetInstance.GetUsedSlots[i]; slot.OnSlotContentUsed(); } } }
private void OnPlayerFireSkill(TackleContent skillType) { if (skillType == TackleContent.DAGGER) { // throw daggers PoolManager.GetInstance.ReuseObject(m_DaggersPrefab, m_EmitPoint.position, Quaternion.identity); } if (skillType == TackleContent.SWORD) { // wave sword } if (skillType == TackleContent.DASH_SHOE) { // dash } }