Exemplo n.º 1
0
 private void OnMouseOver()
 {
     if (Input.GetMouseButtonDown(0) && board.CheckBesidePlayer(boardPos))
     {
         OnDamaged(1);
     }
 }
Exemplo n.º 2
0
 private void OnMouseOver()
 {
     if (Input.GetMouseButtonDown(0) && board.CheckBesidePlayer(boardIndex) && !player.inCombat && player.isPlayerTurn)
     {
         if (!flipper.flipped)
         {
             flipper.Flip();
         }
         else
         {
             player.MoveToBoardPos(boardIndex);
             //map get around and flip them
             //board
         }
     }
 }
Exemplo n.º 3
0
    private void OnMouseOver()
    {
        if (Input.GetMouseButtonDown(0) && board.CheckBesidePlayer(boardPos))
        {
            if (cardSO.dropList.Count == 0)
            {
                board.ResetBoard(board.level + 1);
                return;
            }

            List <Item> drops = cardSO.Interact(null);
            foreach (Item drop in drops)
            {
                board.inventory.AddToInventory(drop);
            }

            manager.RemoveFromList(this);
        }
    }