Пример #1
0
    public void SwitchWeapon()
    {
        if (invController.AbleToSwitchWeapons())
        {
            //Debug.Log("SwitchWeapon");
            if (currentAttackType == "melee")
            {
                currentAttackType = "ranged";
            }
            else
            {
                currentAttackType = "melee";
            }

            this.player.GetComponent <StatusBarLogic>().SetWeapon();
        }
    }