C# Класс OnProximity, SlashRunner

Activates the specified components when this object is close enough to the target object.
Наследование: MonoBehaviour
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
activateDistance double
componentNames string
onProximitySound UnityEngine.AudioClip
target GameObject

Открытые методы

Метод Описание
Start ( ) : void
Update ( ) : void

Приватные методы

Метод Описание
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

Описание методов

Start() публичный Метод

public Start ( ) : void
Результат void

Update() публичный Метод

public Update ( ) : void
Результат void

Описание свойств

activateDistance публичное свойство

Distance from the target at which the components activate
public double activateDistance
Результат double

componentNames публичное свойство

Semicolon-seperated class component names that are to be activated on a certain distance from target
public string componentNames
Результат string

onProximitySound публичное свойство

public AudioClip,UnityEngine onProximitySound
Результат UnityEngine.AudioClip

target публичное свойство

Components activate when target is close enough
public GameObject target
Результат GameObject