Пример #1
0
    void OnItemGrabbed(Character character)
    {
        CharacterWeapon characterWeapon = character.GetComponent <CharacterWeapon>();

        if (characterWeapon != null)
        {
            characterWeapon.RemoveSecondaryWeapon();
            characterWeapon.AddSecondaryWeapon(weaponPrefab);
        }
    }