Esempio n. 1
0
    public void TryFire()
    {
        var weapon = currentSlot._Item as SO_Weapon;

        if (CostCheck() == true)
        {
            if (weapon as SO_Spell)
            {
                spellController.TryCast();
                weaponController._Weapon = null;
            }
            else
            {
                weaponController._Weapon = weapon;
                weaponController.TryFire();
            }
        }
    }