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
Merge requests
!20
New items system.
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
New items system.
master
into
main
Overview
0
Commits
2
Pipelines
0
Changes
31
Merged
Robin Halseth Sandvik
requested to merge
master
into
main
2 years ago
Overview
0
Commits
2
Pipelines
0
Changes
31
Expand
Items class hierarchy.
Inventory class.
CharacterStats class.
Applies modifiers to character's stats.
Generalized the EnemyController class.
0
0
Merge request reports
Compare
main
main (base)
and
latest version
latest version
f7968ed8
2 commits,
2 years ago
31 files
+
719
−
161
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
31
Search (e.g. *.vue) (Ctrl+P)
MrBigsock/Assets/Code/Core/CharacterStats.cs
0 → 100644
+
45
−
0
Options
using
System.Collections
;
using
System
;
using
System.Collections.Generic
;
using
UnityEngine
;
using
UnityEngine.InputSystem
;
namespace
BigSock
{
/*
class represents the stats of a character.
*/
public
class
CharacterStats
:
ICharacterStats
{
/*
The hp of the character.
*/
public
float
MaxHP
{
get
;
set
;
}
/*
The damage of the character.
*/
public
float
Damage
{
get
;
set
;
}
/*
The movement speed of the character.
*/
public
float
MoveSpeed
{
get
;
set
;
}
/*
The knockback of the character.
*/
public
float
Knockback
{
get
;
set
;
}
/*
The range of the character.
*/
public
float
Range
{
get
;
set
;
}
/*
The attack speed of the character.
*/
public
float
AttackSpeed
{
get
;
set
;
}
}
}
\ No newline at end of file
Loading