Exemplo n.º 1
0
        protected override void Render()
        {
            base.Render();

            _position.Dispose();
            _position = new TransitionTicker <Vector2>(State.Position, UpdatePosition);

            _scale.Dispose();
            _scale = new TransitionTicker <Vector3>(State.Scale, UpdateScale);

            _rotation.Dispose();
            _rotation = new TransitionTicker <Quaternion>(State.Rotation, UpdateRotation);
        }
Exemplo n.º 2
0
        protected override void Activate()
        {
            base.Activate();

            _opacity = new TransitionTicker <float>(State.Opacity, UpdateOpacity);
        }
Exemplo n.º 3
0
        protected override void Activate()
        {
            base.Activate();

            _opacity = new TransitionTicker <float>(State.Opacity, val => _canvasGroup.alpha = val);
        }