//こんな感じ using UnityEngine; using System.Collections; //クラス public class Example : MonoBehaviour { //関数 void Start() { //変数 int i = 3; //キーワード HelloClass hello = new HelloClass(); print(i); hello.Say(); } } public class HelloClass : MonoBehaviour { public void Say() { print("Hello!"); } } #命名規則 ##クラス ###アッパーキャメル記法(CamelCase) MonoBehaviour WebCamTexture Debug ##関数 ###アッパーキャメル記法(CamelCase) AddCompone
