2023-06-08 14:09:50 +08:00
|
|
|
using System.Collections;
|
|
|
|
using System.Collections.Generic;
|
|
|
|
using UnityEngine;
|
|
|
|
using System.Linq;
|
|
|
|
namespace BITKit
|
|
|
|
{
|
2023-08-12 01:43:24 +08:00
|
|
|
public class VFX : ScriptableObject, IObjectElement<string, Transform>
|
2023-06-08 14:09:50 +08:00
|
|
|
{
|
|
|
|
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);
|
|
|
|
}
|
|
|
|
}
|