18 lines
319 B
C#
18 lines
319 B
C#
|
using System.Collections;
|
||
|
using System.Collections.Generic;
|
||
|
using UnityEngine;
|
||
|
|
||
|
namespace BITKit
|
||
|
{
|
||
|
[System.Serializable]
|
||
|
public struct GetNameFromList : INameProvider
|
||
|
{
|
||
|
[SerializeField] private string[] names;
|
||
|
public string GetName(object obj, params object[] extensions)
|
||
|
{
|
||
|
return names.Random();
|
||
|
}
|
||
|
}
|
||
|
|
||
|
}
|