Ejemplo n.º 1
0
 public virtual void Move(Space s)
 {
     //moves the character to the given space
     if (capturesPillars)
     {
         // capture pillar
         Pillar p = GameController.Game.GetAtPos <Pillar>(s.transform.position);
         if (p != null)
         {
             p.Capture(card.Owner);
         }
         // /capture pillar
     }
     facing             = s.transform.position - transform.position; //update facing
     transform.position = s.transform.position;
     if (IsDead)
     {
         Die();
     }
 }