I have only just started learning unity, so sorry if this is stupid but i can't find anything online.
my code is really short and im not actually sure how to debug properly using unity.
Heres the code:
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Waypoint_Follower : MonoBehaviour {
public static Transform[] WaypointsArray;
void Awake()
{
WaypointsArray = new Transform[];
for (int i = 0; i < WaypointsArray.Length; i++)
{
WaypointsArray[i] = transform.GetChild(i);
}
}
}
![alt text][1]
[1]: /storage/temp/147802-unity-bug.png
↧