public void LoadNotify(int p, Button caller) { if (lu == null) { lu = GameObject.Instantiate(LoadProfile, transform.root, false).GetComponent <LoadUI>(); } if (nu == null) { nu = GameObject.Instantiate(NoteEditor, transform.root, false).GetComponent <NotesUI>(); } else { nu.transform.SetAsLastSibling(); } lu.TurnOn(p, this, nu, caller); transform.root.GetChild(0).GetComponent <CanvasGroup>().interactable = false; }
private void Start() { //Create the reference to the script loadUI = GetComponent <LoadUI>(); }
private void Start() { loadUI = GetComponent <LoadUI> (); }