We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d1a7123 + 955b422 commit bc4953cCopy full SHA for bc4953c
versions/3.8/zh/getting-started/first-game-2d/index.md
@@ -758,7 +758,7 @@ export class GameManager extends Component {
758
759
通过 `BlockType` 来确定是否要真的创建这个方块,当然只在 `type` 为 `BT_STONE` 的时候我们通过 `instantiate` 方法来创建方块,其他情况下,返回一个空值。
760
761
- > `instantiate`: 是 Cocos Creator 提供的克隆预制体的方法。当然它不仅能克隆预制体,你甚至可以用它克隆别的类型比如某个对象!
+ > `instantiate`: 是 Cocos Creator 提供的实例化预制体为节点的方法。当然它不仅能实例化预制体,你甚至可以用它克隆任意类型的对象!
762
763
此时如果我们在 `GameManager` 的 `start` 内调用 `generateRoad` 来创建地图:
764
0 commit comments