File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed
samples/Unity.Match3/Assets/Scripts/Common/GridTiles/States Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -5,22 +5,22 @@ namespace Common.GridTiles.States
5
5
public class IceState : StatefulGridTile
6
6
{
7
7
private bool _isLocked = true ;
8
- private TileGroup _group = TileGroup . Ice ;
8
+ private int _group = ( int ) TileGroup . Ice ;
9
9
10
- public override int GroupId => ( int ) _group ;
10
+ public override int GroupId => _group ;
11
11
public override bool IsLocked => _isLocked ;
12
12
public override bool CanContainItem => true ;
13
13
14
14
protected override void OnComplete ( )
15
15
{
16
16
_isLocked = false ;
17
- _group = TileGroup . Available ;
17
+ _group = ( int ) TileGroup . Available ;
18
18
}
19
19
20
20
protected override void OnReset ( )
21
21
{
22
22
_isLocked = true ;
23
- _group = TileGroup . Ice ;
23
+ _group = ( int ) TileGroup . Ice ;
24
24
}
25
25
}
26
26
}
Original file line number Diff line number Diff line change @@ -6,24 +6,24 @@ public class StoneState : StatefulGridTile
6
6
{
7
7
private bool _isLocked = true ;
8
8
private bool _canContainItem ;
9
- private TileGroup _group = TileGroup . Stone ;
9
+ private int _group = ( int ) TileGroup . Stone ;
10
10
11
- public override int GroupId => ( int ) _group ;
11
+ public override int GroupId => _group ;
12
12
public override bool IsLocked => _isLocked ;
13
13
public override bool CanContainItem => _canContainItem ;
14
14
15
15
protected override void OnComplete ( )
16
16
{
17
17
_isLocked = false ;
18
18
_canContainItem = true ;
19
- _group = TileGroup . Available ;
19
+ _group = ( int ) TileGroup . Available ;
20
20
}
21
21
22
22
protected override void OnReset ( )
23
23
{
24
24
_isLocked = true ;
25
25
_canContainItem = false ;
26
- _group = TileGroup . Stone ;
26
+ _group = ( int ) TileGroup . Stone ;
27
27
}
28
28
}
29
29
}
You can’t perform that action at this time.
0 commit comments