Ejemplo n.º 1
0
    public void TestStartStatefullScene()
    {
        //Act
        biwBridge.StartKernelEditMode(scene);

        //Assert
        CheckMessageReceived();
    }
    void StartEnterEditMode()
    {
        if (sceneToEdit == null)
        {
            return;
        }

        sceneToEditId = sceneToEdit.sceneData.id;
        inputController.isInputActive = false;

        Environment.i.world.sceneController.OnReadyScene += NewSceneReady;

        builderInWorldBridge.StartKernelEditMode(sceneToEdit);
    }
Ejemplo n.º 3
0
    private void StartEditMode()
    {
        if (sceneToEdit == null)
        {
            return;
        }

        sceneToEditId = sceneToEdit.sceneData.id;

        // In this point we're sure that the catalog loading (the first half of our progress bar) has already finished
        initialLoadingController.SetPercentage(50f);
        Environment.i.world.sceneController.OnNewSceneAdded += NewSceneAdded;
        Environment.i.world.sceneController.OnReadyScene    += NewSceneReady;
        Environment.i.world.blockersController.SetEnabled(false);

        builderInWorldBridge.StartKernelEditMode(sceneToEdit);
    }