mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-12 19:35:55 +00:00
Tutorial
This commit is contained in:
parent
8c3ed1f7c7
commit
b07a8fe60d
33 changed files with 594 additions and 58 deletions
21
Scripts/Resources/Events/CameraTargetEvent.cs
Normal file
21
Scripts/Resources/Events/CameraTargetEvent.cs
Normal 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;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue