GetNextPoint() public method

public GetNextPoint ( Point p ) : Point
p Point
return Point
Ejemplo n.º 1
0
    private void ChangeWayPoint()
    {
        if (!move)
        {
            return;
        }

        Vector3 pos  = to3D(meshboard.GetNextPoint(to2D()));
        Vector3 temp = location.position;

        wayPoint = (pos != null) ? pos : temp;
    }
Ejemplo n.º 2
0
    // Vector3 nPos)
    public void Init()
    {
        meshboard = Camera.main.GetComponent<MeshBoard>();

        location  = transform;
        location.position = to3D( new Point( 0,7 ) );

        wayPoint  = to3D( meshboard.GetNextPoint( to2D() ) );

        location.LookAt( wayPoint );
        location.gameObject.active = true;
        location.GetChild(0).gameObject.active = true;

        move = true;
    }
Ejemplo n.º 3
0
    public void Init()    // Vector3 nPos)
    {
        meshboard = Camera.main.GetComponent <MeshBoard>();

        location          = transform;
        location.position = to3D(new Point(0, 7));

        wayPoint = to3D(meshboard.GetNextPoint(to2D()));

        location.LookAt(wayPoint);
        location.gameObject.active             = true;
        location.GetChild(0).gameObject.active = true;

        move = true;
    }