hello I’m getting a compile error that I cannot solve at minute 7:55 in this video using unity 5.6.3
Cannot implicity convert type unityengine.transform
using System.Collections;
using UnityEngine;
public class Player : MonoBehaviour {
public Transform playerSpawnPoints; //the parent of the spawn points
public bool reSpawn = false;
private Transform[] spawnPoints;
// Use this for initialization
void Start () {
spawnPoints = playerSpawnPoints.GetComponentInChildren<Transform> ();
print (spawnPoints.Length);
}
// Update is called once per frame
void Update () {
}
}