diff --git a/MrBigsock/Assets/Code/attack/AttackMovement.cs b/MrBigsock/Assets/Code/attack/AttackMovement.cs index aa7795a3385fed211ac5008c6d464885cd9634fa..544246477882d1ba0c2d97b74e987cd0929497de 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; }