C# Class AI_Patrol, scriptcaster

Inheritance: MonoBehaviour
Show file Open project: crazymeeshu/scriptcaster Class Usage Examples

Public Properties

Property Type Description
blockChecker Transform
detectPlayer bool
detector GameObject
facingLeft bool
groundChecker Transform
inPursuit bool
isBlocked bool
isGrounded bool
patrolDistance float
patrolSpeed float
pursuitSpeed float

Public Methods

Method Description
FixedUpdate ( ) : void
Flip ( ) : void
OnCollisionEnter2D ( Collision2D coll ) : void
Patrol ( ) : void
Pursuit ( ) : void
Start ( ) : void
Update ( ) : void

Private Methods

Method Description
delayChange ( ) : IEnumerator

Method Details

FixedUpdate() public method

public FixedUpdate ( ) : void
return void

Flip() public method

public Flip ( ) : void
return void

OnCollisionEnter2D() public method

public OnCollisionEnter2D ( Collision2D coll ) : void
coll Collision2D
return void

Patrol() public method

public Patrol ( ) : void
return void

Pursuit() public method

public Pursuit ( ) : void
return void

Start() public method

public Start ( ) : void
return void

Update() public method

public Update ( ) : void
return void

Property Details

blockChecker public property

public Transform blockChecker
return Transform

detectPlayer public property

public bool detectPlayer
return bool

detector public property

public GameObject detector
return GameObject

facingLeft public property

public bool facingLeft
return bool

groundChecker public property

public Transform groundChecker
return Transform

inPursuit public property

public bool inPursuit
return bool

isBlocked public property

public bool isBlocked
return bool

isGrounded public property

public bool isGrounded
return bool

patrolDistance public property

public float patrolDistance
return float

patrolSpeed public property

public float patrolSpeed
return float

pursuitSpeed public property

public float pursuitSpeed
return float