23 lines
635 B
C#
23 lines
635 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using AYellowpaper.SerializedCollections;
|
|
using BITKit;
|
|
using UnityEngine;
|
|
|
|
namespace Net.Project.B.Emoji
|
|
{
|
|
public class ScriptableEmojiCollection:ScriptableObject
|
|
{
|
|
[SerializeField] private SerializedDictionary<string, AnimationClip> emojis;
|
|
|
|
public IReadOnlyCollection<IEmojiData<AnimationClip>> GetEmojis=>emojis.Select(x=>new EmojiData<AnimationClip>
|
|
{
|
|
Name = x.Key,
|
|
Description = x.Value.name,
|
|
Clip = x.Value
|
|
}).OfType<IEmojiData<AnimationClip>>().ToList();
|
|
}
|
|
|
|
}
|