public void OnBackButtonClicked()
    {
        SmartHotelMR.Space parentSpace = _stateManager.SelectedSpace == null ? null : _dataManager.GetSpaceById(_stateManager.SelectedSpace.parentSpaceId);

        Debug.Log("MobileVirtualExplorerManager::OnBackButtonClicked - " + (parentSpace == null ? "null" : parentSpace.friendlyName));

        ExecuteEvents.ExecuteHierarchy <ISpaceMessageTarget>(gameObject, null, (x, y) => x.OnSpaceSelected(parentSpace));
    }
 protected override void AddInteractionComponents(SmartHotelMR.Space space, GameObject instance)
 {
     if (_stateManager.SelectedSpace == null || _stateManager.SelectedSpace.type != DataManager.RoomType)
     {
         instance.AddComponent <MobileSpaceInputReceiver>();
     }
     else
     {
         instance.AddComponent <MobileSensorIndicatorInputReceiver>();
     }
 }
    private void HandleBackButtonPress()
    {
        var dataManager  = gameObject.GetComponentInParent <DataManager>();
        var stateManager = gameObject.GetComponentInParent <StateManager>();

        if (stateManager != null && dataManager != null)
        {
            SmartHotelMR.Space parentSpace = stateManager.SelectedSpace == null ? null : dataManager.GetSpaceById(stateManager.SelectedSpace.parentSpaceId);
            ExecuteEvents.ExecuteHierarchy <ISpaceMessageTarget>(gameObject, null, (x, y) => x.OnSpaceSelected(parentSpace));
        }
    }
Example #4
0
 protected virtual void AddInteractionComponents(Space space, GameObject instance)
 {
     throw new NotImplementedException();
 }