Created
February 3, 2019 05:32
-
-
Save todorok1/84731bd40669221834543f5d8e203d34 to your computer and use it in GitHub Desktop.
ScriptableObjectで作成したフィールドをグループ分けした後
This file contains 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 System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
[System.Serializable] | |
public class EnemyInfo { | |
public int enemyId; | |
public string enemyName; | |
} | |
[System.Serializable] | |
public class EnemyParam { | |
public int maxHp; | |
public int maxMp; | |
public int atk; | |
public int def; | |
public int speed; | |
} | |
[System.Serializable] | |
public class EnemyReward { | |
public int exp; | |
public int gold; | |
public string dropItem; | |
} | |
[CreateAssetMenu(menuName = "MyScriptable/Create GroupingTestSerializedData")] | |
public class GroupingTestSerialized : ScriptableObject { | |
public EnemyInfo enemyInfo; | |
public EnemyParam enemyParam; | |
public EnemyReward enemyReward; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment