public static void Emit(TextureEffectInfo effectInfo, Vector3 position, Quaternion rotation) { if (effectInfo.VisualEffect != null) { PoolManager.Instance.Spawn(effectInfo.VisualEffect, position, rotation); } if (!string.IsNullOrEmpty(effectInfo.SoundEffect)) { FMODUnity.RuntimeManager.PlayOneShot(effectInfo.SoundEffect, position); } }
public bool TryGetEffectInfo(TextureType key, out TextureEffectInfo value) { return(_effectMap.TryGetValue(key, out value)); }