Potion Logic
Most of the potion logic for now
This commit is contained in:
@@ -13,6 +13,7 @@ public class CardManager : MonoBehaviour
|
||||
|
||||
private PlayerSkillTree playerSkillTree;
|
||||
private GameObject cards;
|
||||
private PotionHandler potionHandler;
|
||||
|
||||
|
||||
private void Awake()
|
||||
@@ -25,6 +26,7 @@ public class CardManager : MonoBehaviour
|
||||
{
|
||||
Destroy(gameObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
private void Start()
|
||||
@@ -79,9 +81,9 @@ public class CardManager : MonoBehaviour
|
||||
}
|
||||
}
|
||||
|
||||
public void SelectCard(PlayerSkillTree.Skills skill)
|
||||
public void SelectCard(PlayerSkillTree.Skills skill, PotionHandler.PotionType potionType)
|
||||
{
|
||||
playerSkillTree.UnlockSkill(skill);
|
||||
playerSkillTree.UnlockSkill(skill, potionType);
|
||||
|
||||
foreach (Transform child in cardsParent)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user