public override void Run() { base.Run(); _light.gameObject.SetActive(true); _startedTime = Time.time; _light.intensity = LightIntensity.Evaluate(0); }
public override void Run() { base.Run(); _startedTime = Time.time; var scale = ScaleAnimation.Evaluate(0); transform.localScale = new Vector3(scale, scale, scale); }
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; } }