public void plane_spawner(IdList a, string then) { spawn_position.z = a.Long; spawn_position.x = a.Lat; spawn_position.y = (int)(a.Alt * 0.0003048f); GameObject plo = this_plane(a.Mil); GameObject se = Instantiate(plo, spawn_position, Quaternion.identity, parent); plane_info plane_tmp = se.GetComponent <plane_info>(); plane_tmp.Id = a.Id; plane_tmp.Reg = a.Reg; plane_tmp.Icao = a.Icao; plane_tmp.Call = a.Call; plane_tmp.Type = a.Type; plane_tmp.Mdl = a.Mdl; plane_tmp.From = a.From; plane_tmp.To = a.To; plane_tmp.Op = a.Op; plane_tmp.Alt = (int)spawn_position.y; plane_tmp.Spd = a.Spd; plane_tmp.Lat = a.Lat; plane_tmp.Long = a.Long; plane_tmp.Trak = a.Trak; plane_tmp.Mil = a.Mil; se.name = a.Icao; plane_tmp.front_show = plane_tmp.frGo(); plane_tmp._by = then; a.plane = se; a.front_show = plane_tmp.front_show; pl_List.Add(a); text_reload(); }