Class Player
The player of the game.
Namespace: DocFxForUnity
Assembly: cs.temp.dll.dll
Syntax
public class Player : MonoBehaviour
Properties
Equipment
Gets the list of the equipment carried by the player.
Declaration
public List<string> Equipment { get; }
Property Value
Type | Description |
---|---|
List<String> |
Health
Gets the current health of the player.
Declaration
public int Health { get; }
Property Value
Type | Description |
---|---|
Int32 |
HurtClip
Gets the
Declaration
public AudioClip HurtClip { get; }
Property Value
Type | Description |
---|---|
AudioClip |
StartingHealth
Gets the starting health of the player.
Declaration
public int StartingHealth { get; }
Property Value
Type | Description |
---|---|
Int32 |
Methods
Hit(Int32)
Declaration
public void Hit(int value)
Parameters
Type | Name | Description |
---|---|---|
Int32 | value | How much to deacrease Health. |
Start()
Sets Health with StartingHealth.
Declaration
protected virtual void Start()