C# Class ChasingMonster, DarkDreams

Inheritance: MonoBehaviour
ファイルを表示 Open project: technicalvgda/DarkDreams Class Usage Examples

Public Properties

Property Type Description
facingRight bool
lineCastDistance float
lineOfSight UnityEngine.LineRenderer
moveDuration float
pause bool
pauseDuration float
periodicPause bool
speedChasing float
speedChasingDefault float
speedNormal float
speedNormalDefault float

Public Methods

Method Description
FlipEnemy ( ) : void
KillPlayer ( ) : void
LateUpdate ( ) : void
MoveTurn ( float speed ) : void
OnTriggerEnter2D ( Collider2D col ) : void
PauseEnemy ( ) : void
Start ( ) : void
StartMovement ( ) : IEnumerator
UnpauseEnemy ( ) : void
Update ( ) : void

Private Methods

Method Description
CheckForPlayer ( ) : bool

Method Details

FlipEnemy() public method

public FlipEnemy ( ) : void
return void

KillPlayer() public method

public KillPlayer ( ) : void
return void

LateUpdate() public method

public LateUpdate ( ) : void
return void

MoveTurn() public method

public MoveTurn ( float speed ) : void
speed float
return void

OnTriggerEnter2D() public method

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

PauseEnemy() public method

public PauseEnemy ( ) : void
return void

Start() public method

public Start ( ) : void
return void

StartMovement() public method

public StartMovement ( ) : IEnumerator
return IEnumerator

UnpauseEnemy() public method

public UnpauseEnemy ( ) : void
return void

Update() public method

public Update ( ) : void
return void

Property Details

facingRight public_oe property

public bool facingRight
return bool

lineCastDistance public_oe property

public float lineCastDistance
return float

lineOfSight public_oe property

public LineRenderer,UnityEngine lineOfSight
return UnityEngine.LineRenderer

moveDuration public_oe property

public float moveDuration
return float

pause public_oe property

public bool pause
return bool

pauseDuration public_oe property

public float pauseDuration
return float

periodicPause public_oe property

public bool periodicPause
return bool

speedChasing public_oe property

public float speedChasing
return float

speedChasingDefault public_oe property

public float speedChasingDefault
return float

speedNormal public_oe property

public float speedNormal
return float

speedNormalDefault public_oe property

public float speedNormalDefault
return float