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))); }
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); } }