public void ProcessExploreAction(ActionContainer action) { myAction = action; island = action.ReferingObject as ExploreIsland; int amountOfActionsSpend = ProcessingHelper.CalculateAmountOfActions(action.CharacterTokensSpend); HandlePotentialDiceRoll(amountOfActionsSpend); }
// Start is called before the first frame update void Start() { island = GetComponent <ExploreIsland>(); popupCollect = Resources.Load("prefabs/PopUp_Collect") as GameObject; popupToken = Resources.Load("prefabs/PopUp_Collect_Tokens") as GameObject; var view = FindObjectOfType <PhaseView>(); view.currentPhaseChanged += ActionPhaseTriggered; }
public void SetIsland(ExploreIsland island) { CurrentIsland = island; var ressources = island.myCard.GetRessourcesOnIsland(); for (int i = 0; i < ressources.Length; i++) { if (i == 0) { firstRessource.SetActive(true); } if (i == 1) { secondRessource.SetActive(true); } if (i < 1) { break; } } }
// Start is called before the first frame update void Start() { thisIsland = GetComponent <ExploreIsland>(); }