protected override void BeforeInitialize(float argument) { AnimationMarker.MarkCapturePhase(this); child1.PropagateArgument(argument * 2); child2.PropagateArgument(argument * 2); }
// BeforeInitialize, you can propagate initial argument to child Presenter. // This phase, called parent -> child. // Therefore child isn't initialized yet, touch property is maybe dangerous(it's null!). // You should only do make initial value and propagate argument. protected override void BeforeInitialize() { AnimationMarker.MarkCapturePhase(this); // pass the argument by PresenterBase.PropagetArgument method. child1.PropagateArgument(0.4f); child2.PropagateArgument(0.4f); }
protected override void BeforeInitialize(float argument) { AnimationMarker.MarkCapturePhase(this); }