【3Dゲームエンジン】Unity質問スレッド25at GAMEDEV【3Dゲームエンジン】Unity質問スレッド25 - 暇つぶし2ch■コピペモード□スレを通常表示□オプションモード□このスレッドのURL■項目テキスト367:名前は開発中のものです。 16/07/04 00:18:10.23 RMgiJRbC.net C#で書いています。 itweenを使い始めました。 下記のようにオブジェクトAをBの位置に0.5秒かけて移動する指定を下記のように記述したのですが 移動後、すぐに元の位置に戻ってしまう状態です。 お助けください。宜しくおねがいします。 void Update() if (goalScript.cleared == true && flag00 == 0) { StartCoroutine("Position"); } void Position() { iTween.MoveTo(A, iTween.Hash("position", B.transform.position, "time", 0.5f)); StartCoroutine("Sample"); flag00 = 1; } 368:名前は開発中のものです。 16/07/04 00:20:13.26 RMgiJRbC.net 364です。 一部訂正いたします。 宜しくおねがいします。 void Update() { if (goalScript.cleared == true && flag00 == 0) { StartCoroutine("Position"); } } void Position() { iTween.MoveTo(A, iTween.Hash("position", B.transform.position, "time", 0.5f)); StartCoroutine("Sample"); flag00 = 1; } 次ページ最新レス表示レスジャンプ類似スレ一覧スレッドの検索話題のニュースおまかせリストオプションしおりを挟むスレッドに書込スレッドの一覧暇つぶし2ch