Skip to content

Commit

Permalink
Fixed issue with SoundManager initialization of singleton
Browse files Browse the repository at this point in the history
  • Loading branch information
DiogoDeAndrade committed Nov 4, 2024
1 parent 04093c6 commit 415cc1a
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 6 deletions.
4 changes: 4 additions & 0 deletions Assets/OkapiKit/Scripts/Systems/SoundManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ public static SoundManager instance
// Start is called before the first frame update
void Start()
{
if (_instance == null)
{
_instance = this;
}
// Find all audio sources
audioSources = new List<AudioSource>(GetComponentsInChildren<AudioSource>());
if (audioSources == null)
Expand Down
3 changes: 2 additions & 1 deletion Assets/OkapiKit/UI/GridEvent.png.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion Assets/OkapiKit/UI/Tiles.png.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion Assets/OkapiKit/UI/Trash.png.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Assets/OkapiKit/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "com.videojogoslusofona.okapikit",
"displayName": "OkapiKit",
"version": "1.16.0",
"version": "1.16.1",
"unity": "6000.0",
"description": "OkapiKit is a toolkit for creation of simple games without code.",
"keywords": [ "kit" ],
Expand Down
4 changes: 2 additions & 2 deletions Assets/OkapiKitSamples/package.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"name": "com.videojogoslusofona.okapikit.samples",
"displayName": "OkapiKit Samples",
"version": "1.16.0",
"version": "1.16.1",
"unity": "6000.0",
"description": "OkapiKit is a toolkit for creation of simple games without code. This package is just the samples for OkapiKit, they are not required to use Okapi Kit, and requires the Okapi Kit package.",
"keywords": [ "okapi", "samples" ],
"category": "samples",
"dependencies": {},
"relatedPackages": {
"com.videojogoslusofona.okapikit": "1.16.0"
"com.videojogoslusofona.okapikit": "1.16.1"
},
"author": {
"name": "Videojogos ULHT",
Expand Down
4 changes: 4 additions & 0 deletions ReleaseNotes.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Release Notes

## V1.16.1

- Fixed issue with SoundManager initialization of singleton

## V1.16.0

- Updated OkapiKit to Unity 6 (should work with previous versions)
Expand Down

0 comments on commit 415cc1a

Please sign in to comment.