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