Last active
January 13, 2019 04:48
-
-
Save TomoG29/1fd877583bd529811bdd37daecdba468 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 System; | |
using UnityEngine; | |
public class Sample : MonoBehaviour | |
{ | |
//int → string に変換 | |
private string ConvertToString(int number) | |
{ | |
return Convert.ToString(number); | |
} | |
// string → int に変換 | |
private int ConvertToInt(string text) | |
{ | |
return Convert.ToInt32(text); | |
} | |
private void ETC() | |
{ | |
Convert.ToChar(/*変数*/); | |
Convert.ToDouble(/*変数*/); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment