Hi it says that drop dosent exist even tho it does any ideas?
using UnityEngine;
using System.Collections;
public class Drops : MonoBehaviour {
public Transform[] spawnPoints;
Transform currentPoint;
int index;
public GameObject Drop;
// Use this for initialization
void Start()
{
index = Random.Range (0, spawnPoints.Length);
currentPoint = spawnPoints[index];
Instantiate (Drop, currentPoint.position, currentPoint.rotation);
}
}
you assigned Drop gamobject via inspector
– 767_2yes. yes i have
– PvTGregive tried from prefab and gameobejcts
– PvTGregthe exception is in instantiate line
– 767_2did you check current point for being null
– 767_2