Skip to content

Instantly share code, notes, and snippets.

@TomoG29
Last active January 13, 2019 04:48
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 TomoG29/1fd877583bd529811bdd37daecdba468 to your computer and use it in GitHub Desktop.
Save TomoG29/1fd877583bd529811bdd37daecdba468 to your computer and use it in GitHub Desktop.
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