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; } }
public void Activate() { if (!active) { thisObj.SetActive(true); turnOptions.Activate(); active = true; } }
void ActivateButtons() { stop.onClick.AddListener(delegate() { StopRoll(); }); back.onClick.AddListener(delegate() { Deactivate(); turnOptions.Activate(); }); buttons.SetActive(true); }
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; } }