Last active
January 29, 2019 12:15
-
-
Save todorok1/9e8a7862ab43c0676572c70bf706028a 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; | |
[CreateAssetMenu(menuName = "MyScriptable/Create EnemyData")] | |
public class EnemyData : ScriptableObject { | |
public string enemyName; | |
public int maxHp; | |
public int atk; | |
public int def; | |
public int exp; | |
public int gold; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment