C# Class InteractableDetectorZone, Hellbound

Interactable detector zone. This class handles the logic for the zone infront of the player that scans for interactable objects Created by Simon Jonasson
Inheritance: MonoBehaviour
Show file Open project: Backman/Hellbound

Public Methods

Method Description
addFocus ( Interactable, inter ) : void
clearFocus ( ) : void
getInteractableInFocus ( ) : Interactable,

Returns the interactable in focus. This must be controlled, might be null.

updateFocus ( ) : void

Private Methods

Method Description
OnTriggerEnter ( Collider col ) : void

This function is called on the Interactable as the interactable enters the players interact zone

OnTriggerExit ( Collider col ) : void

This function is called on the Interactable as it leaves the players interact zone

Start ( ) : void
Update ( ) : void
setupInteractText ( ) : void

Method Details

addFocus() public method

public addFocus ( Interactable, inter ) : void
inter Interactable,
return void

clearFocus() public method

public clearFocus ( ) : void
return void

getInteractableInFocus() public method

Returns the interactable in focus. This must be controlled, might be null.
public getInteractableInFocus ( ) : Interactable,
return Interactable,

updateFocus() public method

public updateFocus ( ) : void
return void