LoginSignup
0
2

More than 5 years have passed since last update.

[Unityで学ぶC#] 5 文字の変数

Posted at

目次

  1. 文字の代入
  2. 文字の足し算

まずはサンプル

スクリーンショット 2017-03-03 20.29.10.png
スクリーンショット 2017-03-03 20.29.40.png

文字列を使うときはstringを使います.
また,文字列を使うときは「"」で囲わないといけないというルールがあります.
文字列を「+」で足し算すると,つながります.

使うタイミングの例

  1. スコアの表示
  2. タグの比較
  3. プレイヤー名の保存
0
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
2