public ScAnimation(ScLayer layer, bool autoRest) { this.layer = layer; this.autoRest = autoRest; updateDet = new UpdateCallback(Update); layer.AppendAnimation(this); }