Skip to content
Snippets Groups Projects
Commit f3811097 authored by Robin Halseth Sandvik's avatar Robin Halseth Sandvik
Browse files

Changed to use Vector2 instead.

parent 21610287
No related branches found
No related tags found
1 merge request!53ToolTips, new ability parameter system & misc clean ups.
...@@ -14,7 +14,7 @@ namespace BigSock { ...@@ -14,7 +14,7 @@ namespace BigSock {
public float speed = 10.0f; public float speed = 10.0f;
bool moved = false; bool moved = false;
//Vector3 direction; //Vector3 direction;
Vector3 startingPos; Vector2 startingPos;
/* /*
Damage of the character. Damage of the character.
...@@ -38,7 +38,7 @@ namespace BigSock { ...@@ -38,7 +38,7 @@ namespace BigSock {
/* /*
The direction of the attack. The direction of the attack.
*/ */
public Vector3 Direction { get; set; } public Vector2 Direction { get; set; }
// Start is called before the first frame update // Start is called before the first frame update
...@@ -51,12 +51,6 @@ namespace BigSock { ...@@ -51,12 +51,6 @@ namespace BigSock {
{ {
if (!moved) 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; startingPos = transform.position;
moved = true; moved = true;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment