Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: George Kurelic <[email protected]>
  • Loading branch information
EliteMasterEric and Geokureli authored Jun 13, 2024
1 parent 80245d2 commit b0ba61e
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions flixel/effects/FlxFlicker.hx
Original file line number Diff line number Diff line change
Expand Up @@ -147,16 +147,22 @@ class FlxFlicker implements IFlxDestroyable
/**
* Temporarily pause the flickering, so it can be resumed later.
*/
public function pause():Void {
if (timer == null) return;
public function pause():Void
{
if (timer == null)
return;

timer.active = false;
}

/**
* Resume the flickering after it has been temporarily paused.
*/
public function resume():Void {
if (timer == null) return;
public function resume():Void
{
if (timer == null)
return;

timer.active = true;
}

Expand Down

0 comments on commit b0ba61e

Please sign in to comment.