16 lines
482 B
C#
16 lines
482 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
using System.Linq;
|
|
namespace BITKit
|
|
{
|
|
public class VFX : ScriptableObject, 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);
|
|
}
|
|
} |