This commit is contained in:
Marco 2025-02-21 18:57:00 +01:00
commit b07a8fe60d
33 changed files with 594 additions and 58 deletions

View file

@ -0,0 +1,21 @@
using Godot;
namespace Cirno.Scripts.Resources.Events;
[GlobalClass]
public partial class CameraTargetEvent : CameraTargetPlayerEvent
{
[Export]
public NodePath Target { get; private set; }
[Export]
public Vector2 Offset { get; private set; }
public override void Start(Node2D parent)
{
GameManager.Instance.CameraTargetObject(parent.GetNode<Node2D>(Target), Offset);
_isComplete = true;
}
}