Example #1
0
    public void Shoot()
    {
        if (m_hand < m_slots.Count)
        {
            WeaponInSlot selected = m_slots[m_hand];
            selected.Shoot(transform.parent, m_destination, m_direction);
        }

        WeaponsCooldown();
    }
Example #2
0
    /********  PROTECTED        ************************/

    /********  PRIVATE          ************************/

    private void TakeWeapon(WeaponInSlot weapon)
    {
        if (m_slots.Count < 3)
        {
            m_slots.Add(weapon);
        }
        else
        {
            m_slots[m_hand] = weapon;
        }
    }