Пример #1
0
    // Use this for initialization
    void Start()
    {
        meshTrail = GetComponent <MeshTail>();
        // orginPos = desTrans[0].position;

        ResetPath();
    }
Пример #2
0
    // Use this for initialization
    void Start()
    {
        Vector3 myVector = transform.position - transform.parent.position;

        srcRadiu = Vector3.Magnitude(myVector);

        orginPos = transform.position;

        desPos = desTrans.position;

        // Debug.Log("srcRadiu radius==" + srcRadiu);

        Vector3 destVect = desTrans.position - transform.parent.position;

        desRadius = Vector3.Magnitude(destVect);


        // Debug.Log("des radius=="+  desRadius);


        //  Debug.Log("des radius222==" + Vector3.Distance(desTrans.position, transform.parent.position));

        //   deltaAdd  =(desRadius - srcRadiu) / durationTime;


        meshTrail = GetComponent <MeshTail>();
    }