Created
January 6, 2015 15:15
-
-
Save kazuooooo/07825266ba715af7b548 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 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