moved bucket to the playercontroller, changed tweenStages to a list of pegactions, so processtween takes in actions and builds off of that so that movement/actions priority will line up properly. change tweenstages key to be priority:loop. added category to actions to divide into movement vs action
This commit is contained in:
@@ -13,13 +13,22 @@ public partial class PlayerController : TurnController
|
||||
public PegController _pegController;
|
||||
public PackedScene _commanderScene = GD.Load<PackedScene>("res://Commander.tscn");
|
||||
public List<Tower> _towers = new();
|
||||
public Bucket _bucket;
|
||||
|
||||
public override void _Ready()
|
||||
{
|
||||
_health = _healthMax;
|
||||
base._Ready();
|
||||
_bucket = GetNode<Bucket>("Bucket");
|
||||
}
|
||||
|
||||
public override void _Process(double delta)
|
||||
{
|
||||
base._Process(delta);
|
||||
_bucket.Move();
|
||||
}
|
||||
|
||||
|
||||
public void ChangeHealth(int DAMAGE, Node IMPETUS = null)
|
||||
{
|
||||
_health += DAMAGE;
|
||||
|
||||
Reference in New Issue
Block a user