protected override void BeforeInitialize(float argument)
        {
            AnimationMarker.MarkCapturePhase(this);

            child1.PropagateArgument(argument * 2);
            child2.PropagateArgument(argument * 2);
        }
示例#2
0
        // 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 Initialize(float argument)
        {
            AnimationMarker.MarkBubblingPhase(this);

            Number = new ReactiveProperty <float>(argument);
            Number.Subscribe(x =>
            {
                this.GetComponent <Renderer>().material.color = new Color(x, 0.2f, 0.2f, 0);
            });
        }
 protected override void OnAwake()
 {
     AnimationMarker.MarkAwakePhase(this);
 }
 protected override void BeforeInitialize(float argument)
 {
     AnimationMarker.MarkCapturePhase(this);
 }
示例#6
0
 protected override void Initialize()
 {
     // Initialize is like constructor!
     // see:Sample14_CubeLevel1.cs, Sample14_CubeLevel2.cs
     AnimationMarker.MarkBubblingPhase(this);
 }