top of page

TOSHICHAN
Unityでスクリプト&簡単な実装サイト
文字列を数宇に変換
public string TEST;
// Update is called once per frame
void Update () {
//文字から数字へ型変換
int num1 = int.Parse(TEST);
//num1が1なら
if (num1 == 1) {
Debug.Log ("OK");
}
}
bottom of page