void OnEnable() { anim.SetFlex(0f); anim.SetPoint(false); anim.SetThumb(false); anim.SetPose(0); controller.menubuttonPressed += Recenter; controller.button1Pressed += NextScene; }
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); }