Example #1
0
 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;
 }
Example #2
0
 private void Start()
 {
     //Create the reference to the script
     loadUI = GetComponent <LoadUI>();
 }
Example #3
0
 private void Start()
 {
     loadUI = GetComponent <LoadUI> ();
 }