-
-
Save todorok1/fbfd18d45d2441557e3bc25c9b0bbea8 to your computer and use it in GitHub Desktop.
シンプルRPGチュートリアル第12回 アイテムの情報を定義するクラス
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; | |
| namespace SimpleRpg | |
| { | |
| /// <summary> | |
| /// アイテムの情報を定義するクラスです。 | |
| /// </summary> | |
| [CreateAssetMenu(fileName = "ItemData", menuName = "Scriptable Objects/SimpleRpg/ItemData")] | |
| public class ItemData : ScriptableObject | |
| { | |
| /// <summary> | |
| /// アイテムのIDです。 | |
| /// </summary> | |
| public int itemId; | |
| /// <summary> | |
| /// アイテムの名前です。 | |
| /// </summary> | |
| public string itemName; | |
| /// <summary> | |
| /// アイテムの説明です。 | |
| /// </summary> | |
| public string itemDesc; | |
| /// <summary> | |
| /// アイテムのカテゴリです。 | |
| /// </summary> | |
| public ItemCategory itemCategory; | |
| /// <summary> | |
| /// アイテムの効果量です。 | |
| /// </summary> | |
| public int value; | |
| /// <summary> | |
| /// 使用可能回数です。 | |
| /// </summary> | |
| public int numberOfUse; | |
| /// <summary> | |
| /// 攻撃力の補正値です。 | |
| /// </summary> | |
| public int strength; | |
| /// <summary> | |
| /// 防御力の補正値です。 | |
| /// </summary> | |
| public int guard; | |
| /// <summary> | |
| /// 素早さの補正値です。 | |
| /// </summary> | |
| public int speed; | |
| /// <summary> | |
| /// アイテムの価格です。 | |
| /// </summary> | |
| public int price; | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment