Esempio n. 1
0
    //Different functions regarding actions the character can take.
    #region Actions

    /// <summary>
    /// Makes the character attack with the currently selected weapon.
    /// </summary>
    /// <param name="target"></param>
    public void Attack(MapTile target)
    {
        lockControls.value = true;
        inventory.EquipItem(battleWeaponIndex.value);
        battleWeaponIndex.value = 0;
        characterClicked.Invoke();
        targetTile.value.target = true;
    }