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