Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
Mr BigSock
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Gard Aleksander Furre
Mr BigSock
Commits
f3811097
Commit
f3811097
authored
2 years ago
by
Robin Halseth Sandvik
Browse files
Options
Downloads
Patches
Plain Diff
Changed to use Vector2 instead.
parent
21610287
No related branches found
Branches containing commit
No related tags found
1 merge request
!53
ToolTips, new ability parameter system & misc clean ups.
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
MrBigsock/Assets/Code/attack/AttackMovement.cs
+2
-8
2 additions, 8 deletions
MrBigsock/Assets/Code/attack/AttackMovement.cs
with
2 additions
and
8 deletions
MrBigsock/Assets/Code/attack/AttackMovement.cs
+
2
−
8
View file @
f3811097
...
...
@@ -14,7 +14,7 @@ namespace BigSock {
public
float
speed
=
10.0f
;
bool
moved
=
false
;
//Vector3 direction;
Vector
3
startingPos
;
Vector
2
startingPos
;
/*
Damage of the character.
...
...
@@ -38,7 +38,7 @@ namespace BigSock {
/*
The direction of the attack.
*/
public
Vector
3
Direction
{
get
;
set
;
}
public
Vector
2
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
;
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment