Skip to content

Instantly share code, notes, and snippets.

@todorok1
Last active Jan 29, 2019
Embed
What would you like to do?
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