Created
May 9, 2015 09:11
-
-
Save suakig/ad7d1c958cc294c91774 to your computer and use it in GitHub Desktop.
ExcelDataTest.cs
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 UnityEngine; | |
using System.Collections; | |
public class ExcelDataTest : MonoBehaviour | |
{ | |
void Start () | |
{ | |
var entityItem = Resources.Load("ExcelData/param1") as Entity_item1 ; | |
var sheet = entityItem.sheets.Find ((s) => s.name.Equals ("item1")); | |
foreach(var param in sheet.list){ | |
Debug.Log ( "param.ID; " + param.ID + "\n" + | |
"param.string_data; " + param.string_data + "\n" + | |
"param.int_data; " + param.int_data + "\n" + | |
"param.double_data; " + param.double_data + "\n" + | |
"param.bool_data; " + param.bool_data + "\n" + | |
"param.math_1; " + param.math_1 + "\n" + | |
"param.math_2; " + param.math_2 | |
); | |
foreach (var data in param.array) { | |
Debug.Log ("param.array" + data); | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment