void Start() { if (myAnimator == null) myAnimator = this.gameObject.GetComponent<Animator>(); instance = this; this.gameObject.SetActive(false); }
void Start() { if (myAnimator == null) { myAnimator = this.gameObject.GetComponent <Animator>(); } instance = this; this.gameObject.SetActive(false); }
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")); } }