Skip to content

Instantly share code, notes, and snippets.

@todorok1
Created January 21, 2025 11:13
Show Gist options
  • Select an option

  • Save todorok1/6b1a33fbbbc33cca2c1942af3b878e62 to your computer and use it in GitHub Desktop.

Select an option

Save todorok1/6b1a33fbbbc33cca2c1942af3b878e62 to your computer and use it in GitHub Desktop.
シンプルRPGチュートリアル第14回 行動パターンを定義するクラス
using UnityEngine;
using System;
using System.Collections.Generic;
namespace SimpleRpg
{
/// <summary>
/// 行動パターンを定義するクラスです。
/// </summary>
[Serializable]
public class EnemyActionRecord
{
/// <summary>
/// 行動パターンのカテゴリです。
/// </summary>
public EnemyActionCategory enemyActionCategory;
/// <summary>
/// 行動パターンの条件リストです。
/// </summary>
public List<EnemyConditionRecord> enemyConditionRecords;
/// <summary>
/// 行動が魔法の場合の対象魔法データです。
/// </summary>
[Header("行動が魔法の場合の対象魔法データを指定します。")]
public MagicData magicData;
/// <summary>
/// 行動の優先度です。
/// </summary>
[Header("行動の優先度を0から100までの整数で指定します。数値が大きい方が優先されます。")]
[Range(0, 100)]
public int priority;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment