public override void Open()
 {
     //activate(true);
     toggler.SetActive(true);
     page1.SetActive(true);
     page2.SetActive(false);
     menu.openedCanvi(this);
     opened = true;
 }
Exemplo n.º 2
0
 private void activate(bool active)
 {
     toggler.SetActive(active);
     if (active)
     {
         menu.openedCanvi(this);
     }
     else
     {
         menu.closedCanvi();
     }
 }