示例#1
0
文件: Main.cs 项目: 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);
        }
示例#2
0
文件: Main.cs 项目: qw1998/3D
 public void moveToPosition(Vector3 destination)
 {
     move_script.setDestination(destination);
 }