Skip to content

Commit

Permalink
Adjust namespace and Fixed Source Audio
Browse files Browse the repository at this point in the history
  • Loading branch information
RimuruDev committed Sep 5, 2023
1 parent 100bf1c commit 8dff041
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 12 deletions.
2 changes: 1 addition & 1 deletion Assets/Internal/Codebaase/Helpers/ScreenshotTaker.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#if UNITY_EDITOR
using UnityEngine;

namespace AbyssMoth.Internal.Codebase.Helpers
namespace Internal.Codebaase.Helpers
{
public sealed class ScreenshotTaker : MonoBehaviour
{
Expand Down
12 changes: 6 additions & 6 deletions Assets/Plugins/Audio/Core/SourceAudio.cs
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public void Play(string key)

if (string.IsNullOrEmpty(key))
{
// Debug.LogError("key is empty, Source Audio PlaySound: " + gameObject.name);
// Debug.LogError("key is empty, Source Audio PlaySound: " + gameObject.name);
return;
}

Expand All @@ -101,7 +101,7 @@ private IEnumerator PlayRoutine(string key)

if (_clip == null)
{
// Debug.LogError("Audio Management not found clip at key: " + key + ",\n Source Audio PlaySound: " +gameObject.name);
// Debug.LogError("Audio Management not found clip at key: " + key + ",\n Source Audio PlaySound: " +gameObject.name);
yield break;
}

Expand Down Expand Up @@ -141,6 +141,7 @@ public void Stop()
{
_audioSource.Stop();
_isPlaying = false;
_lastTime = 0;
}

private void Update()
Expand All @@ -157,8 +158,7 @@ private void HandleLoop()

if (_audioSource.time <= 0 && _isPlaying)
{
// Debug.Log("Audio Loop: " + _key);

// Debug.Log("Audio Loop: " + _key);
_audioSource.time = 0;
_audioSource.Play();
}
Expand All @@ -169,7 +169,7 @@ private void Focus()
if (_isFocus == false && _isPlaying && _lastTime > 0)
{
_audioSource.time = _lastTime;
// Debug.Log(_key + " Last Time: " + _lastTime);
// Debug.Log(_key + " Last Time: " + _lastTime);
}

_isFocus = true;
Expand All @@ -180,7 +180,7 @@ private void UnFocus()
if (_isFocus && _isPlaying)
{
_lastTime = _audioSource.time;
// Debug.Log(_key + "Set Last Time: " + _lastTime);
// Debug.Log(_key + "Set Last Time: " + _lastTime);
}

_isFocus = false;
Expand Down
17 changes: 12 additions & 5 deletions ProjectSettings/EditorSettings.asset
Original file line number Diff line number Diff line change
Expand Up @@ -3,38 +3,45 @@
--- !u!159 &1
EditorSettings:
m_ObjectHideFlags: 0
serializedVersion: 11
serializedVersion: 12
m_SerializationMode: 2
m_LineEndingsForNewScripts: 0
m_DefaultBehaviorMode: 1
m_PrefabRegularEnvironment: {fileID: 0}
m_PrefabUIEnvironment: {fileID: 0}
m_SpritePackerMode: 5
m_SpritePackerCacheSize: 10
m_SpritePackerPaddingPower: 1
m_Bc7TextureCompressor: 0
m_EtcTextureCompressorBehavior: 1
m_EtcTextureFastCompressor: 1
m_EtcTextureNormalCompressor: 2
m_EtcTextureBestCompressor: 4
m_ProjectGenerationIncludedExtensions: txt;xml;fnt;cd;asmdef;asmref;rsp
m_ProjectGenerationRootNamespace:
m_ProjectGenerationRootNamespace: RimuruDev
m_EnableTextureStreamingInEditMode: 1
m_EnableTextureStreamingInPlayMode: 1
m_EnableEditorAsyncCPUTextureLoading: 0
m_AsyncShaderCompilation: 1
m_CachingShaderPreprocessor: 1
m_PrefabModeAllowAutoSave: 1
m_EnterPlayModeOptionsEnabled: 0
m_EnterPlayModeOptions: 3
m_GameObjectNamingDigits: 1
m_GameObjectNamingScheme: 0
m_AssetNamingUsesSpace: 1
m_GameObjectNamingScheme: 2
m_AssetNamingUsesSpace: 0
m_InspectorUseIMGUIDefaultInspector: 0
m_UseLegacyProbeSampleCount: 0
m_SerializeInlineMappingsOnOneLine: 1
m_DisableCookiesInLightmapper: 1
m_AssetPipelineMode: 1
m_RefreshImportMode: 0
m_CacheServerMode: 0
m_CacheServerEndpoint:
m_CacheServerNamespacePrefix: default
m_CacheServerEnableDownload: 1
m_CacheServerEnableUpload: 1
m_CacheServerEnableAuth: 0
m_CacheServerEnableTls: 0
m_CacheServerValidationMode: 2
m_CacheServerDownloadBatchSize: 128
m_EnableEnlightenBakedGI: 0

0 comments on commit 8dff041

Please sign in to comment.