您最多选择25个主题 主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

21 行
643 B

using System.Collections.Generic;
using UnityEngine;
namespace LobbyRelaySample.ngo
{
/// <summary>
/// Associates a symbol index with the sprite to display for symbol objects matching the index.
/// </summary>
public class SymbolData : ScriptableObject
{
[SerializeField] public List<Sprite> m_availableSymbols;
public int SymbolCount => m_availableSymbols.Count;
public Sprite GetSymbolForIndex(int index)
{
if (index < 0 || index >= m_availableSymbols.Count)
index = 0;
return m_availableSymbols[index];
}
}
}