Пример #1
0
 //enable the usage of buttons
 public void activate()
 {
     activated = !activated;
     backpackBackground.SetActive(activated);
     backpackSlots.SetActive(activated);
     //disable player movement
     player.GetComponent <PlayerBehaviour>().SetSearch(activated);
     if (notebook.getActive())
     {
         //deactivate the notebook
         notebook.deactivate();
     }
 }