public void TestInit() { _unit = Unit.Create(); _unitHolder = UnitHolder.Create(); _unitChangedEventFired = false; _unitHolder.UnitChanged += UnitHolderOnUnitChanged; }
public void Init(IField field, int x, int y) { _unitHolder = field[x, y]; _unitHolder.UnitChanged += UnitHolderOnUnitChanged; }