mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-08 20:05:53 +00:00
Interactable Chest Collision
This commit is contained in:
parent
b645e1724e
commit
686dea6c8d
8 changed files with 95 additions and 22 deletions
|
|
@ -88,8 +88,8 @@ public partial class PlayerMovement : CharacterBody2D, IDestructible
|
|||
|
||||
if (SelectorScene != null)
|
||||
{
|
||||
_selector = this.CreateChild<Node2D>(SelectorScene);
|
||||
_selector.Visible = false;
|
||||
_selector = this.CreateSibling<Node2D>(SelectorScene, this.GlobalPosition);
|
||||
_selector.Visible = true;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -257,7 +257,7 @@ public partial class PlayerMovement : CharacterBody2D, IDestructible
|
|||
// Replace with function body.
|
||||
if (area.IsInGroup("Interactable") && area is Interactable interactable)
|
||||
{
|
||||
Debug.WriteLine("Interactable Entered");
|
||||
Debug.WriteLine($"Interactable {area.Name} Entered");
|
||||
|
||||
if (_selector != null)
|
||||
{
|
||||
|
|
@ -268,6 +268,11 @@ public partial class PlayerMovement : CharacterBody2D, IDestructible
|
|||
}
|
||||
}
|
||||
|
||||
private void _on_interaction_controller_area_exited(Area2D area)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
private void Explode()
|
||||
{
|
||||
Debug.WriteLine("Ded");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue