Simplify enemy animation logic
This commit is contained in:
@@ -28,8 +28,11 @@ public abstract partial class DungeonRoom : Node3D, IDungeonRoom
|
||||
public void Setup()
|
||||
{
|
||||
_enemiesInRoom = [];
|
||||
//_room.BodyEntered += Room_BodyEntered;
|
||||
//_room.BodyExited += Room_BodyExited;
|
||||
if (_room != null)
|
||||
{
|
||||
_room.BodyEntered += Room_BodyEntered;
|
||||
_room.BodyExited += Room_BodyExited;
|
||||
}
|
||||
}
|
||||
|
||||
private void Room_BodyExited(Node3D body)
|
||||
|
||||
10
Zennysoft.Game.Ma/src/map/dungeon/code/SpecialRoom.cs
Normal file
10
Zennysoft.Game.Ma/src/map/dungeon/code/SpecialRoom.cs
Normal file
@@ -0,0 +1,10 @@
|
||||
using Chickensoft.AutoInject;
|
||||
using Chickensoft.Introspection;
|
||||
|
||||
namespace Zennysoft.Game.Ma;
|
||||
|
||||
[Meta(typeof(IAutoNode))]
|
||||
public partial class SpecialRoom : DungeonRoom
|
||||
{
|
||||
public override void _Notification(int what) => this.Notify(what);
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
uid://bccyfmj8ikewh
|
||||
Reference in New Issue
Block a user