C# 클래스 OnProximity, SlashRunner

Activates the specified components when this object is close enough to the target object.
상속: MonoBehaviour
파일 보기 프로젝트 열기: matthewAURA/SlashRunner 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
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