Created
August 18, 2017 14:34
-
-
Save sthoshi/8edea30d7229497dca3ce784fc05a87c to your computer and use it in GitHub Desktop.
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 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