mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-12 02:25:55 +00:00
Tutorial
This commit is contained in:
parent
8c3ed1f7c7
commit
b07a8fe60d
33 changed files with 594 additions and 58 deletions
30
Scripts/Resources/Events/CameraTargetPlayerEvent.cs
Normal file
30
Scripts/Resources/Events/CameraTargetPlayerEvent.cs
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
using Godot;
|
||||
|
||||
namespace Cirno.Scripts.Resources.Events;
|
||||
|
||||
[GlobalClass]
|
||||
public partial class CameraTargetPlayerEvent : EventResource
|
||||
{
|
||||
protected bool _isComplete = false;
|
||||
|
||||
public override void Init(Node2D parent)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void Start(Node2D parent)
|
||||
{
|
||||
GameManager.Instance.CameraTargetPlayer();
|
||||
_isComplete = true;
|
||||
}
|
||||
|
||||
public override void UpdateEvent(double delta)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override bool IsComplete()
|
||||
{
|
||||
return _isComplete;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue