C# Class PatrollingMonster, DarkDreams

Inheritance: MonoBehaviour
Mostra file Open project: technicalvgda/DarkDreams

Public Properties

Property Type Description
patrolDistance float
speed float

Public Methods

Method Description
FlipEnemy ( ) : void
OnTriggerEnter2D ( Collider2D col ) : void
Set ( Vector3 position, bool facingRight ) : void
Start ( ) : void
Update ( ) : void

Private Methods

Method Description
SetInactive ( ) : IEnumerator

Method Details

FlipEnemy() public method

public FlipEnemy ( ) : void
return void

OnTriggerEnter2D() public method

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

Set() public method

public Set ( Vector3 position, bool facingRight ) : void
position Vector3
facingRight bool
return void

Start() public method

public Start ( ) : void
return void

Update() public method

public Update ( ) : void
return void

Property Details

patrolDistance public_oe property

public float patrolDistance
return float

speed public_oe property

public float speed
return float