Esempio n. 1
0
 public void TriggerEffect(Vector2 location)
 {
     if (card.casterColor == Card.CasterColor.Gray)
     {
         cardEffects.TriggerEffect(FindClosestCaster(card.casterColor, location), location);
     }
     else
     {
         cardEffects.TriggerEffect(FindCaster(card.casterColor), location);
     }
 }
Esempio n. 2
0
    public void TriggerEffect()
    {
        Debug.Log("cardcontroller trigger");

        /*
         * if (card.casterColor == Card.CasterColor.Gray)
         *  foreach (Vector2 target in targets)
         *  {
         *      List<Vector2> temp = new List<Vector2>();
         *      temp.Add(target);
         *      GameController.gameController.StartCoroutine(cardEffects.TriggerEffect(FindClosestCaster(card.casterColor, target), temp));
         *  }
         * else
         */
        GameController.gameController.StartCoroutine(cardEffects.TriggerEffect(FindCaster(card), targets));
    }