Compare commits
3 Commits
229dd04bc1
...
9b8933e698
| Author | SHA1 | Date | |
|---|---|---|---|
| 9b8933e698 | |||
| 9f4cda0e6d | |||
| 1c865730a3 |
+1
-1
@@ -34,7 +34,7 @@ Signal_Debugger="*res://addons/SignalVisualizer/Debugger/SignalDebugger.gd"
|
||||
FightWorldAutoload="*res://prefabs/fight/fight_world_autoload.tscn"
|
||||
SaveGameManager="*res://scripts/CSharp/Common/Savegame/SaveGameManager.cs"
|
||||
SettingsSaveController="*res://scripts/CSharp/Common/Savegame/SettingsSaveController.cs"
|
||||
DayAndNight="*res://prefabs/day and night/day_and_night.tscn"
|
||||
DayAndNight="*res://prefabs/day_and_night/day_and_night.tscn"
|
||||
|
||||
[dialogic]
|
||||
|
||||
|
||||
@@ -19,7 +19,13 @@ public partial class VesnaAnimations : Node
|
||||
/// </summary>
|
||||
[Signal] public delegate void LookDirectionEventHandler(Vector2 direction);
|
||||
|
||||
public override void _Ready()
|
||||
public override void _EnterTree()
|
||||
{
|
||||
// calling with a 1-frame delay to avoid race conditions.
|
||||
CallDeferred(nameof(SetupSubscriptions));
|
||||
}
|
||||
|
||||
private void SetupSubscriptions()
|
||||
{
|
||||
InventoryManager.Instance.playerInventory.InventoryContentsChanged += HandleNewItemInInventory;
|
||||
}
|
||||
|
||||
@@ -62,11 +62,6 @@ public partial class PlantBehaviour2D : Node2D
|
||||
}
|
||||
}
|
||||
|
||||
public void IncrementDaysGrowing()
|
||||
{
|
||||
DayPlanted++;
|
||||
}
|
||||
|
||||
public string PrefabPath => _prefabPath;
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user