C# Class aiController

Inheritance: MonoBehaviour
Mostra 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_oe property

public Sprite alertTexture
return Sprite

alertTimer public_oe property

public float alertTimer
return float

alerted public_oe property

public bool alerted
return bool

alertedTime protected_oe property

protected float alertedTime
return float

chaseMusic public_oe property

public AudioClip,UnityEngine chaseMusic
return UnityEngine.AudioClip

grabbed public_oe property

public bool grabbed
return bool

moveDir protected_oe property

protected Vector2 moveDir
return Vector2

nearWall protected_oe property

protected bool nearWall
return bool

normalSpeed public_oe property

public float normalSpeed
return float

normalTexture public_oe property

public Sprite normalTexture
return Sprite

nourishment public_oe property

public float nourishment
return float

panicCooldown public_oe property

public float panicCooldown
return float

panicTexture public_oe property

public Sprite panicTexture
return Sprite

panicTime protected_oe property

protected float panicTime
return float

panicked public_oe property

public bool panicked
return bool

player public_oe property

public GameObject player
return GameObject

runSpeed public_oe property

public float runSpeed
return float

timePanicked protected_oe property

protected float timePanicked
return float