public virtual void OnMaxLimitExited(ControllableEventArgs e) { if (MaxLimitExited != null) { MaxLimitExited(this, e); } }
public virtual void OnRestingPointReached(ControllableEventArgs e) { if (RestingPointReached != null) { RestingPointReached(this, e); } }
public virtual void OnMinLimitReached(ControllableEventArgs e) { if (MinLimitReached != null) { MinLimitReached(this, e); } }
public virtual void OnValueChanged(ControllableEventArgs e) { if (ValueChanged != null) { ValueChanged(this, e); } }
void LeftRotator_LimitReached(object sender, VRTK.Controllables.ControllableEventArgs e) { Debug.Log("LeftRotator_LimitReached"); leftOn = true; leftRotator.isLocked = true; SetRotarAndLedStatus(); StartCoroutine(RemoveInteractions(leftRotator.gameObject)); }
private void OnValueChanged(object sender, VRTK.Controllables.ControllableEventArgs e) { if (e.value >= closeThreshold) { closed = true; frontRotator.SetValue(180f); frontRotator.isLocked = true; } }
protected virtual void ValueChanged(object sender, VRTK.Controllables.ControllableEventArgs e) { }
private void Rotator_MaxLimitReached(object sender, VRTK.Controllables.ControllableEventArgs e) { // Debug.Log("MAX LIMIT EXITED"); }