Exemple #1
0
 // Use this for initialization
 void Start()
 {
     isGrabbed        = false;
     clockHandRotator = this.GetComponent <VRTK_ArtificialRotator>();
     previousAngle    = 0;
     newAngle         = 0;
 }
Exemple #2
0
        public override void OnEnter()
        {
            // get components from game objects
            var go = Fsm.GetOwnerDefaultTarget(gameObject);

            controllable = go.GetComponent <VRTK_ArtificialRotator>();

            checkRotator();

            if (!everyFrame.Value)
            {
                Finish();
            }
        }
Exemple #3
0
 // Use this for initialization
 void Start()
 {
     lever = GetComponent <VRTK_ArtificialRotator>();
     lever.ValueChanged += OnChanged;
 }
Exemple #4
0
 // Use this for initialization
 void Start()
 {
     triggered  = false;
     tapRotator = this.GetComponent <VRTK_ArtificialRotator>();
 }
Exemple #5
0
 private void Start()
 {
     isGrabbed    = false;
     clampRotator = this.GetComponent <VRTK_ArtificialRotator>();
 }