コード例 #1
0
    //---------------------------------------SETUP PATH QUEUE---------------------------------------//

    public void InsertInQueue(Vector3 startPos, Vector3 endPos, Action <List <Vector3> > listMethod)
    {
        QueuePath q = new QueuePath(startPos, endPos, listMethod);

        //UnityEngine.Debug.Log ("added to queue " + q.startPos + q.endPos);
        queue.Add(q);
    }
コード例 #2
0
    public void InsertInQueue(Vector3 startPos, Vector3 endPos, Action <List <Vector3> > listMethod)
    {
        if (object.Equals(startPos, endPos))
        {
            return;
        }
        QueuePath item = new QueuePath(startPos, endPos, listMethod);

        this.queue.Add(item);
    }
コード例 #3
0
 //---------------------------------------SETUP PATH QUEUE---------------------------------------//
 public void InsertInQueue(Vector3 startPos, Vector3 endPos, Action<List<Vector3>> listMethod)
 {
     QueuePath q = new QueuePath(startPos, endPos, listMethod);
     queue.Add(q);
 }
コード例 #4
0
    //---------------------------------------SETUP PATH QUEUE---------------------------------------//

    public void InsertInQueue(Vector3 startPos, Vector3 endPos, Action <List <Vector3> > listMethod)
    {
        QueuePath q = new QueuePath(startPos, endPos, listMethod);

        queue.Add(q);
    }
コード例 #5
0
    //---------------------------------------SETUP PATH QUEUE---------------------------------------//

    public void InsertInQueue(Vector2 startPos, Vector2 endPos, Action <List <WaypointNodelet> > listMethod)
    {
        QueuePath q = new QueuePath(startPos, endPos, listMethod);

        queue.Add(q);
    }
コード例 #6
0
    //---------------------------------------SETUP PATH QUEUE---------------------------------------//

    public void InsertInQueue(int p, Vector3 startPos, Vector3 endPos, Action <List <WaypointNodelet> > listMethod)
    {
        QueuePath q = new QueuePath(startPos, endPos, listMethod);

        paths[p].queue.Add(q);
    }