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;
    }
}