mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-12 20:55:53 +00:00
Interactable interface
This commit is contained in:
parent
49e58ff735
commit
54d9824581
27 changed files with 102 additions and 61 deletions
|
|
@ -34,11 +34,13 @@ public partial class PlayerMover : ChainActivable
|
|||
_gameManager = this.GetGameManager();
|
||||
}
|
||||
|
||||
public override void Activate(ActivationType activationType = ActivationType.Toggle)
|
||||
public override bool Activate(ActivationType activationType = ActivationType.Toggle)
|
||||
{
|
||||
if (_gameManager.Player is null) return;
|
||||
if (_gameManager.Player is null) return false;
|
||||
|
||||
_ = MovePlayer();
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
private async Task MovePlayer()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue