GetNextPoint() 공개 메소드

public GetNextPoint ( Point p ) : Point
p Point
리턴 Point
예제 #1
0
    private void ChangeWayPoint()
    {
        if (!move)
        {
            return;
        }

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

        wayPoint = (pos != null) ? pos : temp;
    }
예제 #2
0
파일: BotMover2.cs 프로젝트: k-lock/Unity3D
    // 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;
    }
예제 #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;
    }