Skip to content

Instantly share code, notes, and snippets.

@kazuooooo
Created January 6, 2015 15:15
Show Gist options
  • Save kazuooooo/07825266ba715af7b548 to your computer and use it in GitHub Desktop.
Save kazuooooo/07825266ba715af7b548 to your computer and use it in GitHub Desktop.
using UnityEngine;
using System.Collections;
public class Array : MonoBehaviour {
struct Helo{
public string name;
public string maker;
public int price;
//コンストラクタ
public Helo(string n, string m ,int p){
name = n;
maker = m;
price = p;
}
}
void Start(){
Helo h = new Helo ("どら焼き", "和菓子本店", 125);
string s = h.name + "," + h.maker + "," + h.price;
guiText.text = s;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment