예제 #1
0
        void OnDestroy()
        {
            // Unregister the controller update listener.
            controller.OnControllerUpdate -= OnControllerUpdate;

            // Reset the singleton instance.
            instance = null;
        }
예제 #2
0
 void Start()
 {
     instance = this;
     UpdateHandedness();
     // Reset other relevant state.
     firstUpdate = true;
     elbowOffset = Vector3.zero;
     alphaValue  = 1.0f;
     zeroAccel.Set(0, GRAVITY_FORCE, 0);
 }
예제 #3
0
 void OnDestroy()
 {
     // Reset the singleton instance.
     instance = null;
 }