mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-05-15 18:59:10 +00:00
Update README.md
This commit is contained in:
@@ -36,7 +36,7 @@ public abstract class GameLoop {
|
||||
|
||||
protected volatile GameStatus status;
|
||||
|
||||
protected GameController controller;
|
||||
protected final GameController controller;
|
||||
|
||||
private Thread gameThread;
|
||||
|
||||
@@ -53,7 +53,7 @@ public abstract class GameLoop {
|
||||
*/
|
||||
public void run() {
|
||||
status = GameStatus.RUNNING;
|
||||
gameThread = new Thread(() -> processGameLoop());
|
||||
gameThread = new Thread(this::processGameLoop);
|
||||
gameThread.start();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user