mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-20 17:53:47 +00:00
Interactable interface
This commit is contained in:
parent
49e58ff735
commit
54d9824581
27 changed files with 102 additions and 61 deletions
|
|
@ -16,7 +16,7 @@ public partial class BlackCover : Sprite2D, IActivable
|
|||
UpdateSprite();
|
||||
}
|
||||
|
||||
public void Activate(ActivationType activationType = ActivationType.Toggle)
|
||||
public bool Activate(ActivationType activationType = ActivationType.Toggle)
|
||||
{
|
||||
switch (activationType)
|
||||
{
|
||||
|
|
@ -36,6 +36,7 @@ public partial class BlackCover : Sprite2D, IActivable
|
|||
break;
|
||||
}
|
||||
UpdateSprite();
|
||||
return true;
|
||||
}
|
||||
|
||||
private void UpdateSprite()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue