Exemplo n.º 1
0
 private void DoAttack()
 {
     UpdateCurrentCell();
     if (currentCell && currentCell.Unit)
     {
         selectedUnit.Attack(currentCell);
     }
 }
Exemplo n.º 2
0
    void DoAttack()
    {

        if (m_CurrentCell && m_CurrentCell.Unit && m_CurrentCell.Unit.isMonster)
        {
            // Debug.Log(selectedUnit.gameObject.name);
            selectedUnit.Attack(m_CurrentCell.Unit.unitBase);
            // for (int i = 0; i < 6; i++)
            // {
            //     if (selectedUnit.Location.GetNeighbor((HexDirection)i) == m_CurrentCell)
            //     {
            //         selectedUnit.Attack(m_CurrentCell.Unit.unitBase);
            //     }
            // }
        }

    }
Exemplo n.º 3
0
 void DoAttack()
 {
     _mode = Modes.Default;
     _selectedUnit.Attack(_currentCell.Unit, _direction, 98);
     ShowActions(false);
 }