Пример #1
0
    private void Awake()
    {
        resistanceManager.AddResistances(baseResistances);

        characterSpeed.Set(SpeedType.Walk);
        endurance.Current = endurance.max;

        characterStats.Randomize();
        characterSkills.Randomize();
        baseResistances.Randomize();
    }
Пример #2
0
    public void Equip(Equipable ep)
    {
        EquipableType equipableType = ep.equipableType;

        resistanceManager.AddResistances(ep.resistances);
        actor.Character.resistanceManager.AddResistances(ep.resistances);

        SetEquipmentParent(ep, equipableType, Equipable.IsHand(equipableType));

        if (StorageItem.IsStorageItem(ep))
        {
            storage.AddStorageItem((StorageItem)ep);
        }
    }