Exemplo n.º 1
0
    /**********************************************************************************************/
    // функция устанавливает состояние конкретного оружия для указанного игрока
    //
    /**********************************************************************************************/
    public void SetWeaponState(int playerId, PlayerController.WEAPON_SLOT slot, int progress, int CurrentAmmo, int MaxAmmo)
    {
        GameObject            weaponPanel = getWeaponPanelById(playerId);
        WeaponPanelController ctr         = weaponPanel.GetComponent <WeaponPanelController>();

        ctr.SetWeaponState(slot, progress, CurrentAmmo, MaxAmmo);
    }
Exemplo n.º 2
0
    /**********************************************************************************************/
    // функция устанавливает конкретноое оружие в конкретный слот
    //
    /**********************************************************************************************/
    public void SetWeaponInSlot(int playerId, PlayerController.WEAPON_SLOT slot, WEAPON weaponType)
    {
        GameObject            weaponPanel = getWeaponPanelById(playerId);
        WeaponPanelController ctr         = weaponPanel.GetComponent <WeaponPanelController>();

        ctr.SetWeaponInSlot(slot, weaponType);
    }