Ejemplo n.º 1
0
    void InitializePlane()
    {
        const int start      = 0;
        const int first_stop = 1;

        ClearNodesMark();
        PlanShortestPath(start, first_stop);
        m_NextWayPoint = m_WayPoints.Dequeue();          // flight line (start --> first_stop) is divided to several way points

        m_Plane = GetComponentInChildren <Plane> ();
        m_Plane.AimTo(m_NodeTable[start], m_NextWayPoint);
    }