Esempio n. 1
0
    void CloseScene()
    {
        if (activeLine != null)
        {
            activeLine.Dispose();
            activeLine.RemoveFromScene();
            activeLine = null;
        }

        Debug.Log("### CLOSING SCENE:" + name);

        isActingScene = false;
        PlaceActorsAfterScene();
        NotifyActorsThatSceneIsOver();
        SetInteractionForMainCharacter(true);
        SetMovementForMainCharacter(true);
        actorsInScene.Clear();
        Destroy(transform.root.gameObject);
    }
Esempio n. 2
0
    void ComponentEnded(ActorSceneComponent componentThatIsDone)
    {
        Debug.Log("STOP ACTING (splitter) " + componentThatIsDone.name);
        componentThatIsDone.Dispose();
        foreach (var component in components)
        {
            if (component.ShouldUpdate)
            {
                return;
            }
        }

        ComponentDone();
    }