NullReferenceException: Object reference not set to an instance of an object
ArrowController.Update () (at Assets/ArrowController.cs:31)
とエラーが出ました。
ArrowControllerには
using UnityEngine; using System.Collections; public class ArrowController : MonoBehaviour { GameObject player; // Use this for initialization void Start () { this.player = GameObject.Find ("player"); } // Update is called once per frame void Update () { transform.Translate (0, -0.1f, 0); if(transform.position.y < -5.0f){ Destroy (gameObject); } } }
と書きました。
NullReferenceExceptionのリファレンスを見てもどこが間違っているのかわかりません。
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。