UnassignedReferenceException: The variable shotSpawn of WeaponController has not been assigned.
You probably need to assign the shotSpawn variable of the WeaponController script in the inspector.
UnityEngine.Transform.get_position () (at /Users/builduser/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineTransformBindings.gen.cs:26)
WeaponController.Fire () (at Assets/Script/WeaponController.cs:22)
とエラーが出ています。
でもshotSpawnのインスペクターでWeaponControllerはくっつけてあるのでどう解決したらいいのでしょうか?
shotSpawnにWeaponControllerがないって言っているんですよね?
あなたの回答
tips
プレビュー