Skip to content

Commit

Permalink
Updated readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Habrador committed Jan 31, 2022
1 parent 5d76535 commit 5c054c4
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 2 deletions.
9 changes: 7 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -344,8 +344,6 @@ This pattern is almost the same as the [Observer](#3-observer) pattern. The only

Combine the [Command](#1-command) pattern with a C#'s built-in queue, which is why this pattern is sometimes known as a **Command Queue**. In the Update method you pick the first Command in the queue and run it while measuring time. To measure time you can use System.Diagnostics.Stopwatch. If you have time to spare, you run the next Command, and so on until you are out of time. How much time you can spend on the Event Queue each update depends on the game, so you have to experiment.

Credit to [masoudarvishian](https://github.com/masoudarvishian) for implementing this pattern!

**When is it useful?**

* When you after an event will load an asset. This may take time, so if you want to play a sound when clicking a button, the game may freeze because it has to load the sound. A better way is to play the sound some frames after the click.
Expand Down Expand Up @@ -557,6 +555,13 @@ Define a template method in the parent class which consists of calling several m



# Credits

* [masoudarvishian](https://github.com/masoudarvishian) for implementing Event Queue pattern, Service Locator pattern, and bug fixing
* [VladimirMirMir](https://github.com/VladimirMirMir) for bug fixing



# Socials

* Visit my [Portfolio](https://www.habrador.com)
Expand Down
12 changes: 12 additions & 0 deletions UserSettings/EditorUserSettings.asset
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,18 @@ EditorUserSettings:
RecentlyUsedScenePath-0:
value: 224247031146466b0c1a1827022d4c5f435958192526213c283d123dadf33d36e5eb33fde8347129370bfb25
flags: 0
RecentlyUsedScenePath-1:
value: 224247031146466b0c1a1827022d4c5f4159580e233d243c28693f26e4e6312aadc437ffe2753b332c00e339443c1439f40f1b4bf50a1c0e5f1bf30705e6
flags: 0
RecentlyUsedScenePath-2:
value: 224247031146466b0c1a1827022d4c5f40595819382932356204183df7af272ce3f333a4ea3f31297717e1351027
flags: 0
RecentlyUsedScenePath-3:
value: 224247031146466b0c1a1827022d4c5f4743566a0f272b3d2c271973d3f5312de7a77eccf13f31287933fa39113b4870d1050406f7050e3a040be80b22fc151d148b0dcb13dc06
flags: 0
RecentlyUsedScenePath-4:
value: 224247031146466b0c1a1827022d4c5f4742566a1f2d3426242a1873ceef3739f6e824a9af1b31332d0aea2e44170c2ffe0f040ef81f0b1f1801f3475ecc150107cc1bc036c71c1ddf160efdce18dfe69bc3dae3ccf2
flags: 0
vcSharedLogLevel:
value: 0d5e400f0650
flags: 0
Expand Down

0 comments on commit 5c054c4

Please sign in to comment.