Exemplo n.º 1
0
        public bool equals(Object other)
        {
            if (other == null)
            {
                return(false);
            }
            if (other == this)
            {
                return(true);
            }
            if (!(other is HeadMountedDisplay))
            {
                return(false);
            }
            HeadMountedDisplay o = (HeadMountedDisplay)other;

            return((mScreen.equals(o.mScreen)) && (mCardboard.equals(o.mCardboard)));
        }
Exemplo n.º 2
0
        public void UpdateCardboardDeviceParams(CardboardDeviceParams cardboardDeviceParams)
        {
            if ((cardboardDeviceParams == null) || (cardboardDeviceParams.equals(mHmd.getCardboard())))
            {
                return;
            }

            if (mCardboardDeviceParamsObserver != null)
            {
                mCardboardDeviceParamsObserver.OnCardboardDeviceParamsUpdate(cardboardDeviceParams);
            }

            mHmd.setCardboard(cardboardDeviceParams);

            if (mRendererHelper != null)
            {
                mRendererHelper.SetCardboardDeviceParams(cardboardDeviceParams);
            }
        }