C# Class CritterController

Inheritance: AIController
Show file Open project: mezosaurus/eae-project Class Usage Examples

Public Properties

Property Type Description
critterUpgradeType CritterType
idleSound UnityEngine.AudioClip
popSound UnityEngine.AudioClip
waitTime float
walkSound UnityEngine.AudioClip
wanderTag string

Public Methods

Method Description
Start ( ) : void
setSpawnPosition ( Vector2 spawn ) : void

Protected Methods

Method Description
GameUpdate ( ) : void
alert ( ) : void
lure ( Vector3 lurePosition ) : void
move ( ) : void
panic ( ) : void
scare ( Vector3 scaredPosition ) : void

Method Details

GameUpdate() protected method

protected GameUpdate ( ) : void
return void

Start() public method

public Start ( ) : void
return void

alert() protected method

protected alert ( ) : void
return void

lure() protected method

protected lure ( Vector3 lurePosition ) : void
lurePosition Vector3
return void

move() protected method

protected move ( ) : void
return void

panic() protected method

protected panic ( ) : void
return void

scare() protected method

protected scare ( Vector3 scaredPosition ) : void
scaredPosition Vector3
return void

setSpawnPosition() public method

public setSpawnPosition ( Vector2 spawn ) : void
spawn Vector2
return void

Property Details

critterUpgradeType public property

public CritterType critterUpgradeType
return CritterType

idleSound public property

public AudioClip,UnityEngine idleSound
return UnityEngine.AudioClip

popSound public property

public AudioClip,UnityEngine popSound
return UnityEngine.AudioClip

waitTime public property

public float waitTime
return float

walkSound public property

public AudioClip,UnityEngine walkSound
return UnityEngine.AudioClip

wanderTag public property

public string wanderTag
return string