Example #1
0
 void OnEnable()
 {
     anim.SetFlex(0f);
     anim.SetPoint(false);
     anim.SetThumb(false);
     anim.SetPose(0);
     controller.menubuttonPressed += Recenter;
     controller.button1Pressed    += NextScene;
 }
Example #2
0
 void OnEnable()
 {
     controller.indexTriggerPressed   += StartDrawing;
     controller.indexTriggerUnpress   += EndDrawing;
     controller.handTriggerPressed    += StartErasing;
     controller.handTriggerUnpressing += EndErasing;
     anim.SetFlex(0.15f);
     anim.SetPoint(false);
     anim.SetThumb(false);
     anim.SetPose(0);
     transform.Find("Pen").gameObject.SetActive(true);
 }