Esempio n. 1
0
 // Use this for initialization
 void Start()
 {
     isGrabbed        = false;
     clockHandRotator = this.GetComponent <VRTK_ArtificialRotator>();
     previousAngle    = 0;
     newAngle         = 0;
 }
Esempio n. 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();
            }
        }
Esempio n. 3
0
 // Use this for initialization
 void Start()
 {
     lever = GetComponent <VRTK_ArtificialRotator>();
     lever.ValueChanged += OnChanged;
 }
Esempio n. 4
0
 // Use this for initialization
 void Start()
 {
     triggered  = false;
     tapRotator = this.GetComponent <VRTK_ArtificialRotator>();
 }
Esempio n. 5
0
 private void Start()
 {
     isGrabbed    = false;
     clampRotator = this.GetComponent <VRTK_ArtificialRotator>();
 }