I've just created a state into SampleLogger because when you pause the game with the built-in button : it increase it's calls to the GC by 36% constantly every time. This cause terrible lags during playing.
This updates is to avoid a new instantiation of SampleLogger...
I've just created a state into SampleLogger because when you pause the game with the built-in button : it increase it's calls to the GC by 36% constantly every time. This cause terrible lags during playing.
This updates is to avoid a new instantiation of SampleLogger...
But we may need to create a singleton in earlier version I guess by following this ref, for example.