public override IEnumerator ApplyChanges(BaseModel newModel) { model = (Model)newModel; yield return(TextShape.ApplyModelChanges(scene, referencesContainer.text, model.textModel)); RefreshAll(); }
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(); }