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); }
void ComponentEnded(ActorSceneComponent componentThatIsDone) { Debug.Log("STOP ACTING (splitter) " + componentThatIsDone.name); componentThatIsDone.Dispose(); foreach (var component in components) { if (component.ShouldUpdate) { return; } } ComponentDone(); }