Skip to content

Instantly share code, notes, and snippets.

@todorok1
Last active January 29, 2019 12:15
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save todorok1/9e8a7862ab43c0676572c70bf706028a to your computer and use it in GitHub Desktop.
ScriptableObjectのサンプル
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