public void BackToSelectTeam()
 {
     selectTeamPopup.GetComponent <CanvasGroup>().alpha             = 1;
     selectTeamPopup.GetComponent <CanvasGroup>().interactable      = true;
     selectTeamPopup.GetComponent <CanvasGroup> ().blocksRaycasts   = true;
     selectMonsterPopup.GetComponent <CanvasGroup>().alpha          = 0;
     selectMonsterPopup.GetComponent <CanvasGroup>().interactable   = false;
     selectMonsterPopup.GetComponent <CanvasGroup>().blocksRaycasts = false;
     inventory.ResetStackAndHashtable();
     monsterInventoryScript.ResetListMonsterSelected();
     monsterInventoryScript.Reload(false);
 }
Exemple #2
0
 public void HideSelectTeamPopup()
 {
     for (var i = 0; i < _data.Count; i++)
     {
         if (_data[i].Selected)
         {
             monsterInventoryScript2.listMonsterSelected.Add(_data[i].monsterName1);
             monsterInventoryScript2.listMonsterSelected.Add(_data[i].monsterName2);
             monsterInventoryScript2.listMonsterSelected.Add(_data[i].monsterName3);
             monsterInventoryScript2.listMonsterSelected.Add(_data[i].monsterName4);
             break;
         }
     }
     selectTeamPopup.GetComponent <CanvasGroup>().alpha             = 0;
     selectTeamPopup.GetComponent <CanvasGroup>().interactable      = false;
     selectTeamPopup.GetComponent <CanvasGroup> ().blocksRaycasts   = false;
     selectMonsterPopup.GetComponent <CanvasGroup>().alpha          = 1;
     selectMonsterPopup.GetComponent <CanvasGroup>().interactable   = true;
     selectMonsterPopup.GetComponent <CanvasGroup>().blocksRaycasts = true;
     monsterInventoryScript2.Reload(true);
 }