Ejemplo n.º 1
0
    // Update is called once per frame
    void Update()
    {
        Queue <Vector3> posQue = ghost.GetPosQue();

        Vector3[] posArray = posQue.ToArray();

        line.positionCount = posArray.Length;
        line.SetPositions(posArray);

        line.startWidth = 0.15f;
        line.endWidth   = 0.15f;

        line.material.color = color;

        /*
         * for (int i = 0; i < posArray.Length; i++)
         * {
         *  Debug.Log("[" + name + "]" + "posArr = [" + i + "]" + posArray[i]);
         * }
         */
    }