Пример #1
0
        public override IEnumerator ApplyChanges(BaseModel newModel)
        {
            model = (Model)newModel;

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

            RefreshAll();
        }
Пример #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();
        }