private void Start()
 {
     if (DialogarGUI == null)
     {
         referencia  = GUI_Referenciador.instancia;
         DialogarGUI = referencia.GetComponent <GUI_Dialogar>();
     }
 }
Exemple #2
0
 private void Awake()
 {
     if ((instancia != this) && (instancia != null))
     {
         Destroy(this.gameObject);
         return;
     }
     else
     {
         instancia = this;
         DontDestroyOnLoad(this);
     }
 }