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
Afficher le fichier Open project: Backman/Hellbound

Méthodes publiques

Méthode 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

Méthode 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 méthode

public addFocus ( Interactable, inter ) : void
inter Interactable,
Résultat void

clearFocus() public méthode

public clearFocus ( ) : void
Résultat void

getInteractableInFocus() public méthode

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

updateFocus() public méthode

public updateFocus ( ) : void
Résultat void