Exemple #1
0
 public void Activate(Player player, bool itemUsed, bool scrollUsed)
 {
     if (!active)
     {
         Inventory inventory = player.playerData.inventory;
         items.interactable   = false;
         scrolls.interactable = true;
         thisObj.SetActive(true);
         PopulateSlots(inventory.items);
         items.onClick.AddListener(delegate() {
             PopulateSlots(inventory.items);
             items.interactable   = false;
             scrolls.interactable = true;
         });
         scrolls.onClick.AddListener(delegate() {
             PopulateSlots(inventory.scrolls);
             scrolls.interactable = false;
             items.interactable   = true;
         });
         back.onClick.AddListener(delegate() {
             Deactivate();
             turnOptions.Activate();
         });
         active = true;
     }
 }
Exemple #2
0
 public void Activate()
 {
     if (!active)
     {
         thisObj.SetActive(true);
         turnOptions.Activate();
         active = true;
     }
 }
Exemple #3
0
 void ActivateButtons()
 {
     stop.onClick.AddListener(delegate() {
         StopRoll();
     });
     back.onClick.AddListener(delegate() {
         Deactivate();
         turnOptions.Activate();
     });
     buttons.SetActive(true);
 }
Exemple #4
0
 public void Activate(Vector3 playerPos)
 {
     if (!active)
     {
         thisObj.SetActive(true);
         gameCamera.ZoomOutToMap();
         gameCamera.Locked = false;
         back.onClick.AddListener(delegate() {
             Deactivate(playerPos);
             turnOptions.Activate();
         });
         active = true;
     }
 }