Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
DUMOULIN ANTOINE
Wrecking Brawl
Commits
ad303d77
Commit
ad303d77
authored
May 11, 2021
by
DUMOULIN ANTOINE
Browse files
Merge branch 'bugfix/clampDamage' into 'develop'
increase clamp See merge request fauchezlegouic/projet-integrateur!417
parents
d7ce9d10
ba003642
Changes
1
Hide whitespace changes
Inline
Side-by-side
Wrecking Brawl/Assets/Scripts/Collisions/CollisionManager.cs
View file @
ad303d77
...
...
@@ -173,7 +173,7 @@ public class CollisionManager : MonoBehaviour
Debug.Log(isPlayer + directionDiff);*/
int
damage
=
(
int
)((
masse
*
rapportVit
)
/
100
*
randDamage
);
//Debug.Log(isPlayer + "Damage : " + damage);
return
Mathf
.
Clamp
(
damage
,
0
,
5
0
);
return
Mathf
.
Clamp
(
damage
,
0
,
10
0
);
}
return
0
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment