初始化obs/Unity仓库
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
//清除
|
||||
ClearPieceAt(piece);
|
||||
yield return new WaitForSeconds(0.25f);
|
||||
//塌陷
|
||||
movingPieces=CollapseColumn(piece);
|
||||
|
||||
三消游戏过程中遇到上述代码,我们在前面通过ClearPieceAt清除了piece列表中每一个piece对应的gameobject.
|
||||
但是在塌陷代码中依旧使用piece其中的坐标,对塌陷进行处理.
|
||||
|
||||
之所以塌陷还可以使用piece,而没有报错的原因是
|
||||
Reference in New Issue
Block a user