예제 #1
0
        public override void Run()
        {
            base.Run();

            _light.gameObject.SetActive(true);
            _startedTime     = Time.time;
            _light.intensity = LightIntensity.Evaluate(0);
        }
예제 #2
0
        public override void Run()
        {
            base.Run();

            _startedTime = Time.time;

            var scale = ScaleAnimation.Evaluate(0);

            transform.localScale = new Vector3(scale, scale, scale);
        }
예제 #3
0
        private void Update()
        {
            if (!_isRunning)
            {
                return;
            }

            if (_lr == null)
            {
                return;
            }

            var lrSize = LineRendererWidthAnimation.Evaluate(Time.time - _blinkTime);

            _lr.startWidth = lrSize;
            _lr.endWidth   = lrSize;

            if (lrSize <= 0)
            {
                _isRunning = false;
            }
        }