Skip to content

Instantly share code, notes, and snippets.

@sada913
Last active May 24, 2017 17:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sada913/62ac661d860cfcbe63cf53b0ebcaf4bd to your computer and use it in GitHub Desktop.
Save sada913/62ac661d860cfcbe63cf53b0ebcaf4bd to your computer and use it in GitHub Desktop.
Log出力
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class test : MonoBehaviour {
[SerializeField] Enemy ene;
//Enemyは最初に設定したClass名
void Start () {
Debug.Log("id " + ene.param[0].id);
Debug.Log("name " + ene.param[0].name);
Debug.Log("ATK " + ene.param[0].ATK);
Debug.Log("DEF " + ene.param[0].DEF);
Debug.Log("id " + ene.param[1].id);
Debug.Log("name " + ene.param[1].name);
Debug.Log("ATK " + ene.param[1].ATK);
Debug.Log("DEF " + ene.param[1].DEF);
//配列の添字はエクセルの2行目以降から何列目か
}
// Update is called once per frame
void Update () {
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment