Exemple #1
0
    public void additionalChoices(int choiceNr)
    {
        bool executed = false;

        if (cardMoveEnabled == true)
        {
            EventScript es = spawnedCard.GetComponent <EventScript> ();
            if (es != null)
            {
                executed = es.ExecuteAddtionalChoices(choiceNr);                  //call the eventscript on the card for stat-changes, linking of follow up cards, etc.
            }
            else
            {
                Debug.LogError("Event script missing on card");
            }
            onCardSwipe.Invoke();
            if (executed == true)
            {
                nextCard(E_moveOutDirection.none);
            }
        }
    }