Beispiel #1
0
 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);
     }
 }
Beispiel #2
0
 public bool TryGetEffectInfo(TextureType key, out TextureEffectInfo value)
 {
     return(_effectMap.TryGetValue(key, out value));
 }