示例#1
0
 public virtual void OnMaxLimitExited(ControllableEventArgs e)
 {
     if (MaxLimitExited != null)
     {
         MaxLimitExited(this, e);
     }
 }
示例#2
0
 public virtual void OnRestingPointReached(ControllableEventArgs e)
 {
     if (RestingPointReached != null)
     {
         RestingPointReached(this, e);
     }
 }
示例#3
0
 public virtual void OnMinLimitReached(ControllableEventArgs e)
 {
     if (MinLimitReached != null)
     {
         MinLimitReached(this, e);
     }
 }
示例#4
0
 public virtual void OnValueChanged(ControllableEventArgs e)
 {
     if (ValueChanged != null)
     {
         ValueChanged(this, e);
     }
 }
示例#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));
 }
示例#6
0
 private void OnValueChanged(object sender, VRTK.Controllables.ControllableEventArgs e)
 {
     if (e.value >= closeThreshold)
     {
         closed = true;
         frontRotator.SetValue(180f);
         frontRotator.isLocked = true;
     }
 }
示例#7
0
 protected virtual void ValueChanged(object sender, VRTK.Controllables.ControllableEventArgs e)
 {
 }
示例#8
0
 private void Rotator_MaxLimitReached(object sender, VRTK.Controllables.ControllableEventArgs e)
 {
     // Debug.Log("MAX LIMIT EXITED");
 }