Plants animation now supports timescale
This commit is contained in:
parent
5fe7cb7d68
commit
e7a9860a54
18 changed files with 141 additions and 60 deletions
|
|
@ -10,7 +10,7 @@ public partial class PotatomineBehaviour : BaseBehaviour
|
|||
private bool _primed = false;
|
||||
public void Prime()
|
||||
{
|
||||
_tree.Set("parameters/conditions/primed",true);
|
||||
_tree.Set("parameters/Tree/conditions/primed",true);
|
||||
|
||||
_hitbox.Monitorable = false;
|
||||
|
||||
|
|
@ -22,7 +22,7 @@ public partial class PotatomineBehaviour : BaseBehaviour
|
|||
public void OnAreaEntered(Area2D area)
|
||||
{
|
||||
if (_primed == false) return;
|
||||
_tree.Set("parameters/conditions/explode",true);
|
||||
_tree.Set("parameters/Tree/conditions/explode",true);
|
||||
_primed = false;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue