C# Class EnemyFullAI, Endure

Inheritance: MonoBehaviour
Show file Open project: Endure-Game/Endure Class Usage Examples

Public Properties

Property Type Description
aggroDist float
coward Coward,
deAggroDist float
idleDuration float
melee Melee,
moveDuration float
ranged Ranged,
speed float

Public Methods

Method Description
Awake ( ) : void
CowardRun ( ) : void
IdleMovement ( ) : void
MeleeAttack ( ) : void
MoveTo ( Vector3 moveTo ) : void
OnTriggerEnter2D ( Collider2D collided ) : void
OnTriggerExit2D ( Collider2D collided ) : void
RangedAttack ( ) : void
Start ( ) : void
Stun ( GameObject loser ) : void
Update ( ) : void
enemyActive ( bool a ) : void
toggleAggro ( bool isAggro ) : void

Method Details

Awake() public method

public Awake ( ) : void
return void

CowardRun() public method

public CowardRun ( ) : void
return void

IdleMovement() public method

public IdleMovement ( ) : void
return void

MeleeAttack() public method

public MeleeAttack ( ) : void
return void

MoveTo() public method

public MoveTo ( Vector3 moveTo ) : void
moveTo Vector3
return void

OnTriggerEnter2D() public method

public OnTriggerEnter2D ( Collider2D collided ) : void
collided UnityEngine.Collider2D
return void

OnTriggerExit2D() public method

public OnTriggerExit2D ( Collider2D collided ) : void
collided UnityEngine.Collider2D
return void

RangedAttack() public method

public RangedAttack ( ) : void
return void

Start() public method

public Start ( ) : void
return void

Stun() public method

public Stun ( GameObject loser ) : void
loser GameObject
return void

Update() public method

public Update ( ) : void
return void

enemyActive() public method

public enemyActive ( bool a ) : void
a bool
return void

toggleAggro() public method

public toggleAggro ( bool isAggro ) : void
isAggro bool
return void

Property Details

aggroDist public property

public float aggroDist
return float

coward public property

public Coward, coward
return Coward,

deAggroDist public property

public float deAggroDist
return float

idleDuration public property

public float idleDuration
return float

melee public property

public Melee, melee
return Melee,

moveDuration public property

public float moveDuration
return float

ranged public property

public Ranged, ranged
return Ranged,

speed public property

public float speed
return float