public void SaveCode(Text nameTextComponent) { int result = -1; string text = ""; if (nameTextComponent != null) { text = nameTextComponent.text; } if (sourceCodeComponent != null) { result = sourceCodeComponent.SaveCode(text); } if (result == 0) { DebugMessage.SuccessMessage(TranslationManager.GetMessage("SavedSuccessfully")); PanelSaveBg.ExitAnimation(); } else { DebugMessage.ErrorMessage(TranslationManager.GetMessage("ErrorSaving")); } }