cirnogodot/Scenes/Activable.cs

18 lines
320 B
C#
Raw Permalink Normal View History

2024-06-10 22:29:41 +02:00
using Godot;
using System;
using System.Diagnostics;
2025-02-06 11:36:21 +01:00
using Cirno.Scripts;
2024-06-10 22:29:41 +02:00
public partial class Activable : Area2D, IActivable
2024-06-10 22:29:41 +02:00
{
2025-03-09 21:58:25 +01:00
public virtual bool Activate(ActivationType activationType = ActivationType.Toggle)
2024-06-10 22:29:41 +02:00
{
2025-01-20 12:17:27 +01:00
//Debug.WriteLine("Activated");
2025-03-09 21:58:25 +01:00
return true;
2024-06-10 22:29:41 +02:00
}
2025-06-18 11:33:27 +02:00
public void Toggle()
{
this.Activate();
}
2024-06-10 22:29:41 +02:00
}