Example #1
0
 public void Dispose()
 {
     _slots       = null;
     _slotsConfig = null;
     disposables.Clear();
     disposables = null;
 }
Example #2
0
    public UnitModel()
    {
        Impact.Add(R.Temperature, new IntReactiveProperty());
        Impact.Add(R.Pressure, new IntReactiveProperty());
        Impact.Add(R.Humidity, new IntReactiveProperty());
        Impact.Add(R.Radiation, new IntReactiveProperty());

        _slotsConfig = GameConfig.Get <BodySlotsConfig>();
        _slots       = _slotsConfig[0];
        for (int i = 0; i < _slots.Count; i++)
        {
            BodySlots.Add(i, new BodySlotModel(i, _slots[i] == 1 ? true : false));
        }
    }