예제 #1
0
    /// <summary>
    /// Try to call EndSecondary use for offhand weapon, if not wearing a offhand weapon, then it'll try to call the main hand one. (Will call main hand EndPrimary if using two weapons)
    /// </summary>
    public void EndSecondary()
    {
        if (mainHandWeapon != null && offHandWeapon != null)
        {
            EndPrimary(0);
            return;
        }

        if (offHandWeapon != null)
        {
            offHandWeapon.EndSecondary();
        }
        else if (mainHandWeapon != null)
        {
            mainHandWeapon.EndSecondary();
        }
    }