public void SetUnlock(BigTileBehavior bigTileNew) { bigTile = bigTileNew; title.text = "Unlock Territory - Difficulty : " + bigTile.monsters[0].power; price.text = bigTile.price.ToString(); if (GameUtilities.Instance.research < bigTile.price || GameList.Instance.Monsters.Count <= 0) { invade.GetComponent <Image>().color = Color.grey; invade.interactable = false; } else { invade.GetComponent <Image>().color = Color.white; invade.interactable = true; } }
public void OpenUnlock(BigTileBehavior bigTile) { ActivateMenu(5); unlockController.SetUnlock(bigTile); }