File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -603,7 +603,7 @@ MonoBehaviour:
603
603
m_Name :
604
604
m_EditorClassIdentifier :
605
605
tile : {fileID: 11400000, guid: a10927dec698b7c49b1375f89e8db4d2, type: 2}
606
- board : {fileID: 1887623656}
606
+ mainBoard : {fileID: 1887623656}
607
607
trackingPiece : {fileID: 1887623655}
608
608
--- !u!1 &1887623652
609
609
GameObject :
Original file line number Diff line number Diff line change 4
4
public class Ghost : MonoBehaviour
5
5
{
6
6
public Tile tile ;
7
- public Board board ;
7
+ public Board mainBoard ;
8
8
public Piece trackingPiece ;
9
9
10
10
public Tilemap tilemap { get ; private set ; }
@@ -46,22 +46,22 @@ private void Drop()
46
46
Vector3Int position = this . trackingPiece . position ;
47
47
48
48
int current = position . y ;
49
- int bottom = - this . board . boardSize . y / 2 - 1 ;
49
+ int bottom = - this . mainBoard . boardSize . y / 2 - 1 ;
50
50
51
- this . board . Clear ( this . trackingPiece ) ;
51
+ this . mainBoard . Clear ( this . trackingPiece ) ;
52
52
53
53
for ( int row = current ; row >= bottom ; row -- )
54
54
{
55
55
position . y = row ;
56
56
57
- if ( this . board . IsValidPosition ( this . trackingPiece , position ) ) {
57
+ if ( this . mainBoard . IsValidPosition ( this . trackingPiece , position ) ) {
58
58
this . position = position ;
59
59
} else {
60
60
break ;
61
61
}
62
62
}
63
63
64
- this . board . Set ( this . trackingPiece ) ;
64
+ this . mainBoard . Set ( this . trackingPiece ) ;
65
65
}
66
66
67
67
private void Set ( )
You can’t perform that action at this time.
0 commit comments