예제 #1
0
    public void ProcessExploreAction(ActionContainer action)
    {
        myAction = action;
        island   = action.ReferingObject as ExploreIsland;

        int amountOfActionsSpend = ProcessingHelper.CalculateAmountOfActions(action.CharacterTokensSpend);

        HandlePotentialDiceRoll(amountOfActionsSpend);
    }
예제 #2
0
    // 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;
    }
예제 #3
0
    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;
            }
        }
    }
예제 #4
0
 // Start is called before the first frame update
 void Start()
 {
     thisIsland = GetComponent <ExploreIsland>();
 }