mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-01 11:15:33 +00:00
19 lines
No EOL
448 B
C#
19 lines
No EOL
448 B
C#
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(Node parent)
|
|
{
|
|
GameManager.Instance.CameraTargetObject(parent.GetNode<Node2D>(Target), Offset);
|
|
_isComplete = true;
|
|
}
|
|
} |