Skip to content

Instantly share code, notes, and snippets.

@yasuakiohama
Created May 17, 2015 04:36
Show Gist options
  • Save yasuakiohama/508db8e3791883ea24ea to your computer and use it in GitHub Desktop.
Save yasuakiohama/508db8e3791883ea24ea to your computer and use it in GitHub Desktop.
エクセルデータテスト。最初に呼ばれた時に初期化する。
using System;
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
namespace Data
{
/// <summary>
/// ItemListのエクセルデータ設定用クラス
/// sepalate seetにチェックを着けてある。
/// </summary>
public class Items
{
public enum Row : int
{
HP,
MP,
Boom,
fire,
sanda,
}
private List<Entity_Items.Param> m_param = null;
public List<Entity_Items.Param> param
{
get
{
if( m_param != null )
{
return m_param;
}
m_param = new List<Entity_Items.Param> ();
m_param.AddRange ((Resources.Load (MasterData.PATH [(int)MasterData.Type.ITEMS]) as Entity_Items).param);
return m_param;
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment