16 lines
474 B
C#
16 lines
474 B
C#
|
using System.Collections;
|
||
|
using System.Collections.Generic;
|
||
|
using UnityEngine;
|
||
|
using System.Linq;
|
||
|
namespace BITKit
|
||
|
{
|
||
|
public class VFX : BITKitSO, IObjectElement<string, Transform>
|
||
|
{
|
||
|
public string[] tags;
|
||
|
public Transform[] prefabs;
|
||
|
public AudioClip[] clips;
|
||
|
public Transform GetValue() => prefabs.Random();
|
||
|
public Transform prefab=>prefabs.Random();
|
||
|
public bool IsMatch(string[] key)=>MathE.Contains(key,tags);
|
||
|
}
|
||
|
}
|