mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-12 20:25:53 +00:00
Interactable interface
This commit is contained in:
parent
49e58ff735
commit
54d9824581
27 changed files with 102 additions and 61 deletions
|
|
@ -30,9 +30,10 @@ public partial class ElevatorProxy : Area2D, IActivable
|
|||
|
||||
public InteractionController CachedPlayer { get; private set; }
|
||||
|
||||
public void Activate(ActivationType activationType = ActivationType.Toggle)
|
||||
public bool Activate(ActivationType activationType = ActivationType.Toggle)
|
||||
{
|
||||
EmitSignal(SignalName.Activated, (int)activationType);
|
||||
return true;
|
||||
}
|
||||
|
||||
private void _on_area_entered(Area2D area)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue