planting / growth works again
This commit is contained in:
@@ -27,4 +27,6 @@ position = Vector2(6, -161)
|
|||||||
[node name="ReadyPlant" parent="FieldBehaviour/BasePlant" index="3"]
|
[node name="ReadyPlant" parent="FieldBehaviour/BasePlant" index="3"]
|
||||||
position = Vector2(0, -204)
|
position = Vector2(0, -204)
|
||||||
|
|
||||||
|
[connection signal="Interacted" from="InteractionArea2" to="FieldBehaviour/BasePlant" method="Grow"]
|
||||||
|
|
||||||
[editable path="FieldBehaviour/BasePlant"]
|
[editable path="FieldBehaviour/BasePlant"]
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ public partial class PlantBehaviour2D : Node2D
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Transitions the plant to its next groth stage.
|
/// Transitions the plant to its next groth stage.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public void Grow()
|
public void Grow(int id)
|
||||||
{
|
{
|
||||||
switch (_state)
|
switch (_state)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user