mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-11 03:45:53 +00:00
Dropping and picking up
This commit is contained in:
parent
488d02ef81
commit
bcd007fa1e
14 changed files with 294 additions and 62 deletions
|
|
@ -34,8 +34,6 @@ public partial class EnemyDropsProvider : Node2D
|
|||
|
||||
private void DropItem(LootItem item)
|
||||
{
|
||||
|
||||
|
||||
if (!string.IsNullOrWhiteSpace(item.DropScenePath))
|
||||
{
|
||||
GD.Print($"Dropped item: {item.ItemName}");
|
||||
|
|
|
|||
|
|
@ -7,11 +7,13 @@ using Godot.Collections;
|
|||
|
||||
namespace Cirno.Scripts.Components.FSM.Enemy;
|
||||
|
||||
public partial class EnemyStorageModule : Node2D
|
||||
public partial class EnemyStorageModule : Node2D, IFSMStorage
|
||||
{
|
||||
[Export]
|
||||
public EnemyFSMProxy Root { get; private set; }
|
||||
|
||||
public Node2D RootAsNode => Root;
|
||||
|
||||
public EnemyResource EnemyData => Root.EnemyResource;
|
||||
|
||||
public Vector2 MovementDirection { get; set; }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue