24 lines
530 B
C#
24 lines
530 B
C#
using System;
|
|
using Unity.Collections;
|
|
using UnityEngine;
|
|
|
|
[CreateAssetMenu(fileName = "sticker", menuName = "Duck/Sticker", order = 10)]
|
|
[Serializable]
|
|
public class DuckStickerData: ScriptableObject
|
|
{
|
|
[SerializeField]
|
|
[ReadOnly]
|
|
private string _id = System.Guid.NewGuid().ToString();
|
|
|
|
[SerializeField]
|
|
private string _label;
|
|
|
|
[SerializeField]
|
|
private Sprite _stickerSprite;
|
|
|
|
public string Id => _id;
|
|
|
|
public string Label => _label;
|
|
|
|
public Sprite StickerSprite => _stickerSprite;
|
|
} |