From f381109770a638f782a97a2e6a95239000062314 Mon Sep 17 00:00:00 2001
From: Ny Bruker <robinhs@stud.ntnu.no>
Date: Sat, 29 Oct 2022 19:13:41 +0200
Subject: [PATCH] Changed to use Vector2 instead.

---
 MrBigsock/Assets/Code/attack/AttackMovement.cs | 10 ++--------
 1 file changed, 2 insertions(+), 8 deletions(-)

diff --git a/MrBigsock/Assets/Code/attack/AttackMovement.cs b/MrBigsock/Assets/Code/attack/AttackMovement.cs
index aa7795a3..54424647 100644
--- a/MrBigsock/Assets/Code/attack/AttackMovement.cs
+++ b/MrBigsock/Assets/Code/attack/AttackMovement.cs
@@ -14,7 +14,7 @@ namespace BigSock {
 		public float speed = 10.0f;
 		bool moved = false;
 		//Vector3 direction;
-		Vector3 startingPos;
+		Vector2 startingPos;
 
 		/*
 			Damage of the character.
@@ -38,7 +38,7 @@ namespace BigSock {
 		/*
 			The direction of the attack.
 		*/
-		public Vector3 Direction { get; set; }
+		public Vector2 Direction { get; set; }
 
 
 		// Start is called before the first frame update 
@@ -51,12 +51,6 @@ namespace BigSock {
 		{
 			if (!moved)
 			{
-				//var mouse = Camera.main.ScreenToWorldPoint(Input.mousePosition);
-				//var pos = transform.position;
-				//var temp = (mouse - pos);
-				//temp.z = 0;
-				//direction = temp.normalized;
-				//print($"[AttackMovement.Update()] {mouse} - {pos} = {direction}");
 				startingPos = transform.position;
 				moved = true;
 			}
-- 
GitLab