void Spawn() { // Create an instance of the enemy prefab at the selected spawn point's position and rotation. enemy creep = Object.Instantiate(enemy, transform.position, transform.rotation).GetComponent <enemy>(); //### creep.Initialize(idCount, 20.0f, speed, path); idCount++; }