Skip to content

Commit

Permalink
Updated docs. [skip CI]
Browse files Browse the repository at this point in the history
  • Loading branch information
pigpigyyy committed Feb 21, 2025
1 parent 7b29535 commit a7e9882
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Docs/docs/tutorial/80.Writing Game Dialogue/2.using-yarn.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@ local runner = YarnRunner("tutorial.yarn", "Start")
First, make sure you have imported all the necessary modules. Here's the list of modules we will use in this example:

```ts title="init.ts"
import { Content, Path, Node, Director, YarnRunner } from "Dora";
import { Content, Path, Node, Director } from "Dora";
import * as YarnRunner from "YarnRunner";
```

To ensure we can locate the Yarn script, we need to set the correct search path. If the Yarn script and program modules are in the same directory, you can add the following code:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@ local runner = YarnRunner("tutorial.yarn", "Start")
  首先确保您已正确地导入所有必需的模块。以下是本教程示例中我们需要的模块:

```ts title="init.ts"
import { Content, Path, Node, Director, YarnRunner } from "Dora";
import { Content, Path, Node, Director } from "Dora";
import * as YarnRunner from "YarnRunner";
```

  为了确保我们可以找到 Yarn 脚本,我们需要设置正确的搜索路径。如果 Yarn 脚本和程序模块在同一个目录下时我们可以增加如下代码:
Expand Down

0 comments on commit a7e9882

Please sign in to comment.