// Start is called before the first frame update void Awake() { if (phase_instance != null) { Debug.LogError("more than one phase manager"); return; } phase_instance = this; // the static variable will equal this. so that each node doesn't need to contain it own build manager }
void Start() { InvokeRepeating("Spawn", spawnTime, spawnTime); phasemanager = phasebutton.phase_instance; // call spawn function with the time to start and wait to do it }