Skip to content

Instantly share code, notes, and snippets.

@todorok1
Created February 21, 2025 06:42
Show Gist options
  • Save todorok1/4e0a5edc445f118c8f8bc62f05172458 to your computer and use it in GitHub Desktop.
Save todorok1/4e0a5edc445f118c8f8bc62f05172458 to your computer and use it in GitHub Desktop.
シンプルRPGチュートリアル第24回 キャラクターに関する設定を定義するクラス
using System.Collections.Generic;
using UnityEngine;
namespace SimpleRpg
{
/// <summary>
/// レベルとパラメータの対応を定義するクラスです。
/// </summary>
[CreateAssetMenu(fileName = "ParameterTable", menuName = "Scriptable Objects/SimpleRpg/ParameterTable")]
public class ParameterTable : ScriptableObject
{
/// <summary>
/// 対応するキャラクターのIDです。
/// </summary>
public int characterId;
/// <summary>
/// レベルとパラメータの対応レコードのリストです。
/// </summary>
public List<ParameterRecord> parameterRecords;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment