Initialization of Layer's parametrs should be called before calling (act()) the Layer
@override void init([parametr]) { units = (parametr as int); }