C# Class Targetting, HackAndSlash

Inheritance: MonoBehaviour
Show file Open project: MrPhil/HackAndSlash Class Usage Examples

Public Properties

Property Type Description
selectedTarget Transform
targets List

Public Methods

Method Description
AddAllEnemies ( ) : void
AddTarget ( Transform enemy ) : void
Start ( ) : void
Update ( ) : void

Private Methods

Method Description
DeSelectTarget ( ) : void
SelectTarget ( ) : void
SortTargetsByDistance ( ) : void
TargetEnemy ( ) : void

Method Details

AddAllEnemies() public method

public AddAllEnemies ( ) : void
return void

AddTarget() public method

public AddTarget ( Transform enemy ) : void
enemy Transform
return void

Start() public method

public Start ( ) : void
return void

Update() public method

public Update ( ) : void
return void

Property Details

selectedTarget public property

public Transform selectedTarget
return Transform

targets public property

public List targets
return List