Beispiel #1
0
        ////////////////////////////////////////////////////////////////////////////////////////////////
        /*--------------------------------------------------------------------------------------------*/
        public override void Awake()
        {
            base.Awake();

            if (HeadsetCameraTransform == null)
            {
                throw new Exception("The HovercastLeapLookInputProvider component requires the " +
                                    "'Headset Camera Transform' to be set.");
            }

            var sett = new LeapLookInputSettings();

            sett.LeapTransform = gameObject.transform;
            vSettings          = sett;
            UpdateSettings();

            var sideL = new LeapLookInputSide(true, sett);
            var sideR = new LeapLookInputSide(false, sett);

            sideL.SetOppositeHandMenu(sideR.Menu);
            sideR.SetOppositeHandMenu(sideL.Menu);

            vSideL = sideL;
            vSideR = sideR;
        }
		////////////////////////////////////////////////////////////////////////////////////////////////
		/*--------------------------------------------------------------------------------------------*/
		public override void Awake() {
			base.Awake();

			if ( HeadsetCameraTransform == null ) {
				throw new Exception("The HovercastLeapLookInputProvider component requires the "+
					"'Headset Camera Transform' to be set.");
			}

			var sett = new LeapLookInputSettings();
			sett.LeapTransform = gameObject.transform;
			vSettings = sett;
			UpdateSettings();

			var sideL = new LeapLookInputSide(true, sett);
			var sideR = new LeapLookInputSide(false, sett);

			sideL.SetOppositeHandMenu(sideR.Menu);
			sideR.SetOppositeHandMenu(sideL.Menu);

			vSideL = sideL;
			vSideR = sideR;
		}