レス書き込み
スレへ戻る
写
レス栞
レス消
【3Dゲームエンジン】Unity質問スレッド29 [無断転載禁止]©2ch.net
PC,スマホ,PHSは
ULA
べっかんこ
公式(スマホ)
公式(PC)
で書き込んでください。
名前
メール
引用切替:
レスアンカーのみ
>>372 > IEnumerator coroutine; > void Start () > { > coroutine = Sample2 (10, 0.5f); > StartCoroutine (Sample1 ()); > StartCoroutine (coroutine); > } > void Update () > { > if (Input.GetKeyDown (KeyCode.Space)) { > StopCoroutine (Sample1 ()); > } > if (Input.GetKey (KeyCode.Alpha1)) { > StopCoroutine (coroutine); > } > } > IEnumerator Sample1 () > { > for (int i = 0; i < 100; i++) { > Debug.Log ("Sample1:" + i); > yield return new WaitForSeconds (0.5f); > } > } > IEnumerator Sample2 (int num, float interval) > { > for (int i = 0; i < num; i++) { > Debug.Log ("Sample2:" + i); > yield return new WaitForSeconds (interval); > } > } > サイトに載ってあったのをちょっといじったんですが、Sample1()がスペースを押しても止まりません。 > どなたか回答宜しくお願いいたします。
ローカルルール
SETTING.TXT
他の携帯ブラウザのレス書き込みフォームはこちら。
書き込み設定
で書き込みサイトの設定ができます。
・
ULA
・
べっかんこ(身代わりの術)
・
べっかんこ(通常)
・
公式(スマホ)
・
公式(PC)[PC,スマホ,PHS可]
書き込み設定(板別)
で板別の名前とメールを設定できます。
メモ帳
(0/65535文字)
上
下
板
覧
索
設
栞
歴
Google検索
Wikipedia
ぬこの手
ぬこTOP
0.026s