2019-11-30 07:46:38 +00:00
|
|
|
|
using System.Collections;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using UnityEngine;
|
2020-03-04 20:47:24 +00:00
|
|
|
|
using UnityEngine.VFX;
|
2019-11-30 07:46:38 +00:00
|
|
|
|
|
|
|
|
|
public class SpectrumVFXBind1 : MonoBehaviour
|
|
|
|
|
{
|
|
|
|
|
[SerializeField] private VisualEffect targetVfx = null;
|
|
|
|
|
private static readonly string spectrumValue = "Spectrum Value 1";
|
|
|
|
|
|
|
|
|
|
public void OnEnergyChanged(float energy)
|
|
|
|
|
{
|
|
|
|
|
targetVfx.SetFloat(spectrumValue, energy);
|
|
|
|
|
}
|
|
|
|
|
}
|