C# Class Coliseo.Actor

Inheritance: UnityEngine.MonoBehaviour
Mostrar archivo Open project: lmucs/Coliseo Class Usage Examples

Public Properties

Property Type Description
canMove bool

Protected Properties

Property Type Description
_health uint
anim UnityEngine.Animator
healthDisplay UnityEngine.TextMesh
rb UnityEngine.Rigidbody
saber UnityEngine.GameObject
saberCont SaberController

Private Properties

Property Type Description
IsOpponent bool
IsValidAttack bool

Public Methods

Method Description
Awake ( ) : void
OnTriggerEnter ( Collider other ) : void
ResetLife ( ) : void
TakeDamage ( uint amount ) : uint
attack ( Actor target ) : void
die ( ) : void
finishAttack ( ) : void
initiateAttack ( ) : void
initiateBlock ( ) : void
move ( float forwardback, float leftright, float vertical ) : void
startMove ( ) : void
turn ( float x, float y ) : void

Private Methods

Method Description
IsOpponent ( Actor other ) : bool
IsValidAttack ( Actor other ) : bool

Method Details

Awake() public method

public Awake ( ) : void
return void

OnTriggerEnter() public method

public OnTriggerEnter ( Collider other ) : void
other UnityEngine.Collider
return void

ResetLife() public method

public ResetLife ( ) : void
return void

TakeDamage() public abstract method

public abstract TakeDamage ( uint amount ) : uint
amount uint
return uint

attack() public method

public attack ( Actor target ) : void
target Actor
return void

die() public abstract method

public abstract die ( ) : void
return void

finishAttack() public method

public finishAttack ( ) : void
return void

initiateAttack() public method

public initiateAttack ( ) : void
return void

initiateBlock() public method

public initiateBlock ( ) : void
return void

move() public abstract method

public abstract move ( float forwardback, float leftright, float vertical ) : void
forwardback float
leftright float
vertical float
return void

startMove() public method

public startMove ( ) : void
return void

turn() public abstract method

public abstract turn ( float x, float y ) : void
x float
y float
return void

Property Details

_health protected_oe property

protected uint _health
return uint

anim protected_oe property

protected Animator,UnityEngine anim
return UnityEngine.Animator

canMove public_oe property

public bool canMove
return bool

healthDisplay protected_oe property

protected TextMesh,UnityEngine healthDisplay
return UnityEngine.TextMesh

rb protected_oe property

protected Rigidbody,UnityEngine rb
return UnityEngine.Rigidbody

saber protected_oe property

protected GameObject,UnityEngine saber
return UnityEngine.GameObject

saberCont protected_oe property

protected SaberController,Coliseo saberCont
return SaberController