35 lines
723 B
C#
35 lines
723 B
C#
using Chickensoft.AutoInject;
|
|
using Chickensoft.Introspection;
|
|
using Godot;
|
|
|
|
namespace Zennysoft.Game.Ma;
|
|
|
|
[Meta(typeof(IAutoNode))]
|
|
public partial class BossRoomB : Node3D, IBossRoom
|
|
{
|
|
public override void _Notification(int what) => this.Notify(what);
|
|
|
|
[Node] public Marker3D PlayerSpawn { get; set; } = default!;
|
|
|
|
[Node] public DemonWall DemonWall { get; set; } = default!;
|
|
|
|
[Node] private Area3D ActivateTrap { get; set; } = default!;
|
|
|
|
public void OnReady()
|
|
{
|
|
ActivateTrap.BodyEntered += ActivateTrap_AreaEntered;
|
|
}
|
|
|
|
private void ActivateTrap_AreaEntered(Node3D area) => StartBossFight();
|
|
|
|
public void OnBossFightEnded()
|
|
{
|
|
|
|
}
|
|
|
|
public void StartBossFight()
|
|
{
|
|
DemonWall.Activate();
|
|
}
|
|
}
|