Revision 400ff34d
Added by Leszek Koltunski over 2 years ago
src/main/java/org/distorted/tutorials/TutorialScreen.java | ||
---|---|---|
75 | 75 |
@Override |
76 | 76 |
public void onClick(View v) |
77 | 77 |
{ |
78 |
RubikScreenPlay play = (RubikScreenPlay) ScreenList.PLAY.getScreenClass(); |
|
79 |
int object = play.getObject(); |
|
78 |
int object = RubikObjectList.getCurrObject(); |
|
80 | 79 |
RubikObject obj = RubikObjectList.getObject(object); |
81 | 80 |
int numScrambles = obj==null ? 0 : obj.getNumScramble(); |
82 | 81 |
act.getControl().scrambleObject(numScrambles); |
Also available in: Unified diff
Move the 'currObject' from RubikScreenPlay (WTF?) to RubikObjectList.