reorganized some files and deleted some for dialogue rewrite

This commit is contained in:
2022-12-19 16:57:41 +01:00
parent 5b61c662af
commit 54d0f44960
7 changed files with 69 additions and 95 deletions

View File

@@ -31,8 +31,8 @@ public partial class player : CharacterBody2D
Vector2 rayCastPosition = new Vector2((float)Math.Round(movement.x), (float)Math.Round(movement.y)) * rayCastLength;
if (rayCastPosition.Length() != 0) rayCast.TargetPosition = rayCastPosition;
//call event in raycasted object
if (Input.IsActionJustPressed("ui_accept") && rayCast.IsColliding())
rayCast.GetCollider().Call("OnInteraction", playerName);
/*if (Input.IsActionJustPressed("ui_accept") && rayCast.IsColliding())
rayCast.GetCollider().Call("OnInteraction", playerName);*/
//animation system (with controller support wcih cant get normalized vector)
if (movement.Length() != 0)
animatedSprite.Play();