diff --git a/Assets/OkapiKit/Scripts/Movement/MovementGrid.cs b/Assets/OkapiKit/Scripts/Movement/MovementGrid.cs index f9f53b2..0355aad 100644 --- a/Assets/OkapiKit/Scripts/Movement/MovementGrid.cs +++ b/Assets/OkapiKit/Scripts/Movement/MovementGrid.cs @@ -1,7 +1,4 @@ -using Codice.CM.Common; -using UnityEditor; using UnityEngine; -using UnityEngine.EventSystems; namespace OkapiKit { diff --git a/Assets/OkapiKit/Scripts/Movement/MovementGridPath.cs b/Assets/OkapiKit/Scripts/Movement/MovementGridPath.cs index 4a6346a..c847746 100644 --- a/Assets/OkapiKit/Scripts/Movement/MovementGridPath.cs +++ b/Assets/OkapiKit/Scripts/Movement/MovementGridPath.cs @@ -1,9 +1,6 @@ -using System.Collections; using System.Collections.Generic; using UnityEngine; using NaughtyAttributes; -using TMPro; -using Codice.Client.BaseCommands.FastImport; namespace OkapiKit { diff --git a/Assets/OkapiKit/Scripts/Systems/SoundManager.cs b/Assets/OkapiKit/Scripts/Systems/SoundManager.cs index 75b4e22..530dba2 100644 --- a/Assets/OkapiKit/Scripts/Systems/SoundManager.cs +++ b/Assets/OkapiKit/Scripts/Systems/SoundManager.cs @@ -41,7 +41,7 @@ void Start() } } - private void _PlaySound(AudioClip clip, float volume = 1.0f, float pitch = 1.0f) + private AudioSource _PlaySound(AudioClip clip, float volume = 1.0f, float pitch = 1.0f) { var audioSource = GetSource(); @@ -51,6 +51,8 @@ private void _PlaySound(AudioClip clip, float volume = 1.0f, float pitch = 1.0f) audioSource.outputAudioMixerGroup = defaultMixerOutput; audioSource.Play(); + + return audioSource; } private AudioSource GetSource() @@ -85,9 +87,9 @@ private AudioSource NewSource() return audioSource; } - static public void PlaySound(AudioClip clip, float volume = 1.0f, float pitch = 1.0f) + static public AudioSource PlaySound(AudioClip clip, float volume = 1.0f, float pitch = 1.0f) { - _instance._PlaySound(clip, volume, pitch); + return _instance._PlaySound(clip, volume, pitch); } public override string GetRawDescription(string ident, GameObject refObject) diff --git a/Assets/OkapiKit/Scripts/Triggers/TriggerOnGridEvent.cs b/Assets/OkapiKit/Scripts/Triggers/TriggerOnGridEvent.cs index b139cf6..faba07d 100644 --- a/Assets/OkapiKit/Scripts/Triggers/TriggerOnGridEvent.cs +++ b/Assets/OkapiKit/Scripts/Triggers/TriggerOnGridEvent.cs @@ -1,7 +1,3 @@ -using Codice.Client.BaseCommands; -using System; -using System.Collections; -using System.Collections.Generic; using UnityEngine; namespace OkapiKit diff --git a/Assets/OkapiKit/package.json b/Assets/OkapiKit/package.json index 3d5b7e2..3d731a5 100644 --- a/Assets/OkapiKit/package.json +++ b/Assets/OkapiKit/package.json @@ -1,7 +1,7 @@ { "name": "com.videojogoslusofona.okapikit", "displayName": "OkapiKit", - "version": "1.16.1", + "version": "1.16.2", "unity": "6000.0", "description": "OkapiKit is a toolkit for creation of simple games without code.", "keywords": [ "kit" ], diff --git a/Assets/OkapiKitSamples/package.json b/Assets/OkapiKitSamples/package.json index adb9a19..ae6bed7 100644 --- a/Assets/OkapiKitSamples/package.json +++ b/Assets/OkapiKitSamples/package.json @@ -1,14 +1,14 @@ { "name": "com.videojogoslusofona.okapikit.samples", "displayName": "OkapiKit Samples", - "version": "1.16.1", + "version": "1.16.2", "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.1" + "com.videojogoslusofona.okapikit": "1.16.2" }, "author": { "name": "Videojogos ULHT", diff --git a/Assets/Settings/UniversalRP.asset b/Assets/Settings/UniversalRP.asset index 76cfd3a..e88db67 100644 --- a/Assets/Settings/UniversalRP.asset +++ b/Assets/Settings/UniversalRP.asset @@ -109,7 +109,7 @@ MonoBehaviour: m_PrefilterDebugKeywords: 1 m_PrefilterWriteRenderingLayers: 1 m_PrefilterHDROutput: 1 - m_PrefilterAlphaOutput: 0 + m_PrefilterAlphaOutput: 1 m_PrefilterSSAODepthNormals: 1 m_PrefilterSSAOSourceDepthLow: 1 m_PrefilterSSAOSourceDepthMedium: 1 diff --git a/Assets/Settings/UniversalRenderPipelineGlobalSettings.asset b/Assets/Settings/UniversalRenderPipelineGlobalSettings.asset index 16fd1c1..a439786 100644 --- a/Assets/Settings/UniversalRenderPipelineGlobalSettings.asset +++ b/Assets/Settings/UniversalRenderPipelineGlobalSettings.asset @@ -55,7 +55,17 @@ MonoBehaviour: - rid: 7189466454756163603 - rid: 7189466454756163604 m_RuntimeSettings: - m_List: [] + m_List: + - rid: 7189466454756163585 + - rid: 7189466454756163586 + - rid: 7189466454756163587 + - rid: 7189466454756163589 + - rid: 7189466454756163590 + - rid: 7189466454756163592 + - rid: 7189466454756163593 + - rid: 7189466454756163596 + - rid: 7189466454756163601 + - rid: 7189466454756163604 m_AssetVersion: 8 m_ObsoleteDefaultVolumeProfile: {fileID: 0} m_RenderingLayerNames: diff --git a/ReleaseNotes.md b/ReleaseNotes.md index 69fe2cd..6898d8e 100644 --- a/ReleaseNotes.md +++ b/ReleaseNotes.md @@ -1,5 +1,10 @@ # Release Notes +## V1.16.2 + +- SoundManager now returns the AudioSource that's playing +- Fixed issues with compilation for builds + ## V1.16.1 - Fixed issue with SoundManager initialization of singleton diff --git a/Todo.txt b/Todo.txt index 41f3ea7..32c2a31 100644 --- a/Todo.txt +++ b/Todo.txt @@ -18,14 +18,11 @@ Features: - Spawner should have random direction possibility - Path shows direction (debug) - Bool and string variables -- Press '+' to add a point at cursor when editing a path -- Add insert point option for path - Comment Code - Documentation - Support for Analytics (extra package?) - Add OnDestroy event - Add stairs/moving platforms to system -- Add animator control on XY movement Usability: ---------- @@ -45,21 +42,12 @@ Simple usage: - Set object visible/invisible - Set object velocity -Videos: -------- -- Ricochet bullet -- Look at player - Bugs: ----- - Preserve gravity with velocity set (?) - Tooltips don't work with Naughty Attributes range - Maybe make my own to be able to have tooltips, or propose a fix -Polish: -------- -- Rounded corners on title boxes - Games: ------ - Add sounds to most games