alot of stuff i forgot to commit
This commit is contained in:
parent
fc2329a873
commit
b8d516e734
60 changed files with 7397 additions and 64 deletions
|
|
@ -8,9 +8,20 @@ public class Player : Entity
|
|||
private void Update()
|
||||
{
|
||||
stats.attackOriginCenter.Lookat2D(cam.ScreenToWorldPoint(Input.mousePosition));
|
||||
if (Input.GetMouseButtonDown(0))
|
||||
if (!stats.abilitiesDisabled)
|
||||
{
|
||||
stats.abilities[0].TryAbility();
|
||||
if (Input.GetMouseButtonDown(0))
|
||||
{
|
||||
stats.abilities[0].TryAbility();
|
||||
}
|
||||
else if (Input.GetMouseButtonDown(1))
|
||||
{
|
||||
stats.abilities[1].TryAbility(); //the ability system needs to be fixed
|
||||
}
|
||||
else if (Input.GetKeyDown(KeyCode.Q) && stats.abilities[2])
|
||||
{
|
||||
stats.abilities[2].TryAbility();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue