Exemple #1
0
 public virtual void OnMaxLimitExited(ControllableEventArgs e)
 {
     if (MaxLimitExited != null)
     {
         MaxLimitExited(this, e);
     }
 }
Exemple #2
0
 public virtual void OnRestingPointReached(ControllableEventArgs e)
 {
     if (RestingPointReached != null)
     {
         RestingPointReached(this, e);
     }
 }
Exemple #3
0
 public virtual void OnMinLimitReached(ControllableEventArgs e)
 {
     if (MinLimitReached != null)
     {
         MinLimitReached(this, e);
     }
 }
Exemple #4
0
 public virtual void OnValueChanged(ControllableEventArgs e)
 {
     if (ValueChanged != null)
     {
         ValueChanged(this, e);
     }
 }
Exemple #5
0
 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;
     }
 }
Exemple #7
0
 protected virtual void ValueChanged(object sender, VRTK.Controllables.ControllableEventArgs e)
 {
 }
Exemple #8
0
 private void Rotator_MaxLimitReached(object sender, VRTK.Controllables.ControllableEventArgs e)
 {
     // Debug.Log("MAX LIMIT EXITED");
 }