|
|
delegate void | PlayerHitDelegate (int _health, Vector3 _pos) |
| |
|
delegate void | PlayerBoostDelegate () |
| |
|
delegate void | PlayerDeathDelegate (Vector3 _pos) |
| |
|
void | StopMovement () |
| |
|
void | PlayDeathParticles () |
| |
|
void | PlaySpawnParticles () |
| |
|
void | PlayHitParticles () |
| |
|
void | SetColor (Color _col, Color _colTail) |
| |
|
void | OnChildTriggerEnter (Collider2D _other) |
| |
|
void | OnChildTriggerEnterMesh (Collider _other) |
| |
|
void | OnChildTriggerStay (Collider2D _other) |
| |
|
void | OnChildTriggerStayMesh (Collider _other) |
| |
|
void | InitMidSpawn () |
| |
|
void | InitAfterSpawn () |
| |
|
void | InitBeforeBoost () |
| |
|
void | InitMidBoost (bool _forceToNormal=false) |
| |
|
IEnumerator | BoostCancel (float _offset) |
| |
|
IEnumerator | DamageSetDelay (float _offset) |
| |
|
void | InitAfterBoost () |
| |
|
void | InitBeforeHit () |
| |
|
void | InitAfterHit () |
| |
|
void | ResetMovement () |
| |
|
void | PausePlayer (bool _pause=true) |
| |
|
|
Animator | anim |
| |
|
Vector3 | lastVelocity |
| |
|
AnimationClip | HurtPlayerAnimation |
| |
|
int | playerIndex = 0 |
| |
|
bool | canTakeDamage = false |
| |
|
bool | canMove = false |
| |
|
bool | canBoost = true |
| |
|
bool | isDead = true |
| |
|
bool | isBoosting = false |
| |
|
bool | isBoostCanceled = false |
| |
|
bool | isTakingHit = false |
| |
|
bool | isSpawning = false |
| |
|
PlayerTrail | trail |
| |
|
|
const int | DefaultHealth = 3 |
| |
|
|
MyGameActions | Actions [get, set] |
| |
|
bool | CanTakeDamage [get, set] |
| |
|
bool | CanMove [get, set] |
| |
|
bool | CanBoost [get, set] |
| |
|
bool | PlayerAlive [get] |
| |
|
|
PlayerHitDelegate | playerHitEvent |
| |
|
PlayerBoostDelegate | playerBoostDelegate |
| |
|
PlayerDeathDelegate | playerDeathEvent |
| |
|
|
void | Start () |
| |
|
void | Update () |
| |
|
IEnumerator | BoostCooldownLoop () |
| |
|
void | PlayerDeathSound () |
| |
|
void | PlayerHit () |
| |
|
IEnumerator | Kill () |
| |
|
void | KillPlayerAfterAnimation () |
| |
|
IEnumerator | WaitToKill () |
| |
|
void | Spawn () |
| |
|
void | StartBoost () |
| |
|
|
Coroutine | boostCoroutine |
| |
|
Camera | camera |
| |
|
GameObject | player |
| |
|
Rigidbody2D | rb |
| |
|
Renderer | render |
| |
|
Renderer | boost |
| |
|
Renderer | zenMarker |
| |
|
ParticleSystem | psIdle |
| |
|
ParticleSystem | psBurst |
| |
|
ParticleSystem | psSpawn |
| |
|
ParticleSystem | psDeath |
| |
|
AnimationCurve | speedCurve |
| |
|
float | minBoostTime = 0.07f |
| |
|
float | maxBoostTime = 0.18f |
| |
|
float | startHurtTime = 0 |
| |
|
float | startBoostTime = 0 |
| |
|
float | boostCooldown = 0.1f |
| |
|
float | idleSpeed = 20.0f |
| |
|
float | boostSpeed = 85.0f |
| |
|
Vector3 | lastPos |
| |
|
float | lastMoveHorizontal = 1 |
| |
|
float | lastMoveVertical = 0 |
| |
The documentation for this class was generated from the following file:
- C:/Users/Pidge/Documents/gamedev/core_project_arrhythmia/Assets/Scripts/Player.cs