Beispiel #1
0
        public override IEnumerator ApplyChanges(BaseModel newModel)
        {
            model = (Model)newModel;

            yield return(TextShape.ApplyModelChanges(scene, referencesContainer.text, model.textModel));

            RefreshAll();
        }
Beispiel #2
0
        public override IEnumerator ApplyChanges(string newJson)
        {
            if (!scene.isTestScene)
            {
                model.textModel = SceneController.i.SafeFromJson <TextShape.Model>(newJson);
            }

            yield return(TextShape.ApplyModelChanges(scene, referencesContainer.text, model.textModel));

            RefreshAll();
        }