C# Class aiController

Inheritance: MonoBehaviour
Show file Open project: mezosaurus/eae-project

Public Properties

Property Type Description
alertTexture Sprite
alertTimer float
alerted bool
chaseMusic UnityEngine.AudioClip
grabbed bool
normalSpeed float
normalTexture Sprite
nourishment float
panicCooldown float
panicTexture Sprite
panicked bool
player GameObject
runSpeed float

Protected Properties

Property Type Description
alertedTime float
moveDir Vector2
nearWall bool
panicTime float
timePanicked float

Public Methods

Method Description
OnTriggerExit2D ( Collider2D other ) : void
OnTriggerStay2D ( Collider2D other ) : void
Start ( ) : void

Method Details

OnTriggerExit2D() public method

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

OnTriggerStay2D() public method

public OnTriggerStay2D ( Collider2D other ) : void
other UnityEngine.Collider2D
return void

Start() public method

public Start ( ) : void
return void

Property Details

alertTexture public property

public Sprite alertTexture
return Sprite

alertTimer public property

public float alertTimer
return float

alerted public property

public bool alerted
return bool

alertedTime protected property

protected float alertedTime
return float

chaseMusic public property

public AudioClip,UnityEngine chaseMusic
return UnityEngine.AudioClip

grabbed public property

public bool grabbed
return bool

moveDir protected property

protected Vector2 moveDir
return Vector2

nearWall protected property

protected bool nearWall
return bool

normalSpeed public property

public float normalSpeed
return float

normalTexture public property

public Sprite normalTexture
return Sprite

nourishment public property

public float nourishment
return float

panicCooldown public property

public float panicCooldown
return float

panicTexture public property

public Sprite panicTexture
return Sprite

panicTime protected property

protected float panicTime
return float

panicked public property

public bool panicked
return bool

player public property

public GameObject player
return GameObject

runSpeed public property

public float runSpeed
return float

timePanicked protected property

protected float timePanicked
return float