Skip to content

Instantly share code, notes, and snippets.

@sthoshi
Created August 18, 2017 14:34
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 sthoshi/8edea30d7229497dca3ce784fc05a87c to your computer and use it in GitHub Desktop.
Save sthoshi/8edea30d7229497dca3ce784fc05a87c to your computer and use it in GitHub Desktop.
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Lesson1 : MonoBehaviour {
// Use this for initialization
void Start () {
Person p = new Person ();
p.name = "太郎";
p.show ();
}
// Update is called once per frame
void Update () {
}
}
class Person {
public string name;
public void show () {
Debug.Log ("私の名前は" + this.name);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment