【3Dゲームエンジン】Unity質問スレッド17at GAMEDEV
【3Dゲームエンジン】Unity質問スレッド17 - 暇つぶし2ch236:名前は開発中のものです。
15/05/06 16:34:06.01 9NdJ+k3G.net
すいません、初心者でチュートリアルをやっているのですが、
スクリプトに
rigidbody2D.AddForce(Vector2.right * h * 300f);
という一行を追加しただけで、下記エラーが出てしまいます。
原因と対策を教えて頂ければ。
'UnityEngine.Component' does not contain a definition
for 'AddForce' and no extension method 'AddForce' accepting a first argument of type 'UnityEngine.Component'
could be found (are you missing a using directive or an assembly reference?)


次ページ
最新レス表示
レスジャンプ
類似スレ一覧
スレッドの検索
話題のニュース
おまかせリスト
オプション
しおりを挟む
スレッドに書込
スレッドの一覧
暇つぶし2ch