Potion Logic
Most of the potion logic for now
This commit is contained in:
@@ -28,6 +28,18 @@ public class PlayerMovement : MonoBehaviour
|
||||
{
|
||||
HandleDash();
|
||||
}
|
||||
|
||||
if (Input.GetKeyDown(KeyCode.L))
|
||||
{
|
||||
if(PlayerSkills.TryUsePotion(PotionHandler.PotionType.HealthBig))
|
||||
{
|
||||
Debug.Log("Potion used!");
|
||||
}
|
||||
else
|
||||
{
|
||||
Debug.Log("Potion not available!");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void FixedUpdate()
|
||||
|
||||
Reference in New Issue
Block a user