Skip to content
Snippets Groups Projects
Commit 1c8a0fc2 authored by william's avatar william
Browse files

update stamina inscrito nos eventos de consumo de stamina

parent 3f779e8c
No related branches found
No related tags found
No related merge requests found
......@@ -17,6 +17,12 @@ public class PlayerController : Controller
myTurn = true;
currentHand = 1;
changeTurn();
currentStamina = maxStamina;
foreach (Skills s in GetComponents<Skills>())
{
s.skillCost += updateStamina;
}
}
private void setup()
......@@ -25,6 +31,12 @@ public class PlayerController : Controller
animatorController = GetComponent<Animator>();
}
private void updateStamina(float cost)
{
currentStamina -= cost;
Debug.Log(currentStamina);
}
private void Update()
{
inputs.behindBack = Input.GetAxisRaw(controlType.getBehindBackInput());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment