Ejemplo n.º 1
0
Archivo: Main.cs Proyecto: qw1998/3D
        public Vector3 Move()
        {
            Vector3 target;

            if (is_right)
            {
                move_script.setDestination(left_pos);
                is_right = false;
                target   = left_pos;
            }
            else
            {
                move_script.setDestination(right_pos);
                is_right = true;
                target   = right_pos;
            }
            return(target);
        }
Ejemplo n.º 2
0
Archivo: Main.cs Proyecto: qw1998/3D
 public void moveToPosition(Vector3 destination)
 {
     move_script.setDestination(destination);
 }