C# Class OnProximity, SlashRunner

Activates the specified components when this object is close enough to the target object.
Inheritance: MonoBehaviour
Afficher le fichier Open project: matthewAURA/SlashRunner Class Usage Examples

Méthodes publiques

Свойство Type Description
activateDistance double
componentNames string
onProximitySound UnityEngine.AudioClip
target GameObject

Méthodes publiques

Méthode Description
Start ( ) : void
Update ( ) : void

Private Methods

Méthode Description
PopulateComponentList ( ) : void

Parses the string of components and acquires references to these components, throwing an exception if one cannot be found

SetComponents ( bool option ) : void

Enables/disables all on-proximity components

Method Details

Start() public méthode

public Start ( ) : void
Résultat void

Update() public méthode

public Update ( ) : void
Résultat void

Property Details

activateDistance public_oe property

Distance from the target at which the components activate
public double activateDistance
Résultat double

componentNames public_oe property

Semicolon-seperated class component names that are to be activated on a certain distance from target
public string componentNames
Résultat string

onProximitySound public_oe property

public AudioClip,UnityEngine onProximitySound
Résultat UnityEngine.AudioClip

target public_oe property

Components activate when target is close enough
public GameObject target
Résultat GameObject