やまめも

【 ゲーム開発・日々のことについて 】

[メソッド]小文字を大文字に変換する。ToUpper()

void OnDifficultyChanged (GameController.GameDifficulty difficulty)
{
	string txt;
	switch (difficulty) {
	case GameController.GameDifficulty.Normal:
		txt = "Normal";
		break;
	case GameController.GameDifficulty.Hard:
		txt = "Hard";
		break;
	case GameController.GameDifficulty.Impossibru:
		txt = "Imposibro";
		break;
	}
	Utility.ChangeTextMesh(txtDifficulty, txt.ToUpper());
}

www.c-tipsref.com