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:
@@ -8,12 +8,10 @@ public partial class PlayArea : Node2D
|
||||
public Node2D _leftEdge, _rightEdge;
|
||||
public Area2D _region;
|
||||
public Map _map;
|
||||
public Bucket _bucket;
|
||||
|
||||
public override void _Ready()
|
||||
{
|
||||
base._Ready();
|
||||
_bucket = GetNode<Bucket>("Bucket");
|
||||
_region = GetNode<Area2D>("Region");
|
||||
|
||||
_leftEdge = GetNode<Node2D>("LeftEdge");
|
||||
@@ -29,7 +27,6 @@ public partial class PlayArea : Node2D
|
||||
public override void _Process(double delta)
|
||||
{
|
||||
base._Process(delta);
|
||||
_bucket.Move();
|
||||
}
|
||||
|
||||
public void HighlightCells()
|
||||
|
||||
Reference in New Issue
Block a user