public void Reset()
 {
     resetIdy();
     plane.Clear();
     foreach (GameObject row in rows)
     {
         DashboardRow dashboardrow = row.GetComponent <DashboardRow>();
         dashboardrow.EmptyRow();
         dashboardrow.SetIndex(0);
     }
 }
 public void Reset()
 {
     resetIdy();
     plane.Clear();
     foreach (GameObject row in rows)
     {
         DashboardRow dashboardrow = row.GetComponent <DashboardRow>();
         dashboardrow.EmptyRow();
         dashboardrow.SetIndex(0);
     }
     transform.GetComponent <ReferenceSelection>().resetAll();
 }
    public void PopulateRow()
    {
        foreach (GameObject row in rows)
        {
            //string [] data =Aircraft_parent.transform.GetChild(i).GetComponent<movement>().GetData();
            int j = rows.IndexOf(row);

            DashboardRow dashboardrow = row.GetComponent <DashboardRow>();

            if (j + (height * idy) > plane.Count - 1)
            {
                dashboardrow.EmptyRow();
                dashboardrow.SetIndex(idx);
            }
            else
            {
                //Debug.Log("Here");
                dashboardrow.SetPlane(plane[j + (height * idy)]);

                //Debug.Log("Plane======================="+ plane[0]);

                var scene = SceneManager.GetActiveScene().name;

                if (scene == "ARScene")
                {
                    string[] data = dashboardrow.GetPlane().GetComponent <movement>().GetData();

                    dashboardrow.ChangeIdentifier(data[0]);       // SET TAIL ID
                    dashboardrow.SetData(data.Skip(1).ToArray()); //
                    dashboardrow.SetIndex(idx);
                }
                else if (scene == "LiveData")
                {
                    string[] data = dashboardrow.GetPlane().GetComponent <AircraftDataManager>().GetData();


                    dashboardrow.ChangeIdentifier(data[0]);       // SET TAIL ID
                    dashboardrow.SetData(data.Skip(1).ToArray()); //
                    dashboardrow.SetIndex(idx);
                }
            }
        }
    }