-
-
Save todorok1/6b1a33fbbbc33cca2c1942af3b878e62 to your computer and use it in GitHub Desktop.
シンプルRPGチュートリアル第14回 行動パターンを定義するクラス
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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