Exemple #1
0
    public void GiveCombination(string weaponType)
    {
        //Debug.Log(weaponType);
        CreateCombination cc = GetComponentInChildren <CreateCombination>();

        if (cc)
        {
            cc.GiveCustomCombo(weaponCombination);
            cc.UseCustomCombo();
        }
        else
        {
            Debug.Log("No Create Combination attached");
        }
        WeaponCombination wc = GetComponentInChildren <WeaponCombination>();

        if (wc)
        {
            wc.SwapWeapon(weaponType);
        }
        else
        {
            Debug.Log("No Create Weapon Combination attached");
        }
    }
Exemple #2
0
    public void SwapWeaponType(string weaponType)
    {
        WeaponCombination wc = GetComponentInChildren <WeaponCombination>();

        if (wc)
        {
            wc.SwapWeapon(weaponType);
        }
        else
        {
            Debug.Log("No WeaponCombination attached");
        }
    }