private void DoAttack() { UpdateCurrentCell(); if (currentCell && currentCell.Unit) { selectedUnit.Attack(currentCell); } }
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); // } // } } }
void DoAttack() { _mode = Modes.Default; _selectedUnit.Attack(_currentCell.Unit, _direction, 98); ShowActions(false); }