diff --git a/Assets/Scripts/PlayerManager.cs b/Assets/Scripts/PlayerManager.cs index 6dd8ace..409d9c1 100644 --- a/Assets/Scripts/PlayerManager.cs +++ b/Assets/Scripts/PlayerManager.cs @@ -71,7 +71,7 @@ public class PlayerManager : GenericPlayerManager { protected void Update() { if (toFinalize) { - UnityEngine.Debug.Log("Update -> toFinalize == " + toFinalize); + UnityEngine.Debug.Log("PM.U(): Update -> toFinalize == " + toFinalize); Application.Quit(); } } @@ -94,19 +94,19 @@ public class PlayerManager : GenericPlayerManager { while ((CameraCapture.frameNumber * 1000) / CameraCapture.frameRate < message.Time) yield return null; - UnityEngine.Debug.Log("Loading " + message.Text); + UnityEngine.Debug.Log("PM.MS(): Loading " + message.Text); base.playQueued(message.Text); } while (base.isPlaying() || base.isLoading()) yield return null; - UnityEngine.Debug.Log("ALL DONE!"); + UnityEngine.Debug.Log("PM.MS(): ALL DONE!"); server.sendFinalizeToCore(); CameraCapture.capture = false; - UnityEngine.Debug.Log("CameraCapture.capture == " + CameraCapture.capture); + UnityEngine.Debug.Log("PM.MS(): CameraCapture.capture == " + CameraCapture.capture); toFinalize = true; - UnityEngine.Debug.Log("toFinalize == " + toFinalize); + UnityEngine.Debug.Log("PM.MS(): toFinalize == " + toFinalize); } public override WWW loadAssetBundle(string aniName) diff --git a/Assets/Scripts/PlayerManager/GenericPlayerManager.cs b/Assets/Scripts/PlayerManager/GenericPlayerManager.cs index 9472baa..d0b88d0 100644 --- a/Assets/Scripts/PlayerManager/GenericPlayerManager.cs +++ b/Assets/Scripts/PlayerManager/GenericPlayerManager.cs @@ -320,6 +320,7 @@ public abstract class GenericPlayerManager : MonoBehaviour { { lock (LOCKER_PLAY) { + Debug.Log("GPM.pQ(" + gloss + ")"); setGlossWaiting(true); StartCoroutine("loadAndPlay", gloss); } @@ -330,6 +331,7 @@ public abstract class GenericPlayerManager : MonoBehaviour { { lock (LOCKER_PLAY) { + Debug.Log("GPM.pN(" + gloss + ")"); stopAll(); StartCoroutine("loadAndPlay", gloss); } @@ -427,7 +429,7 @@ public abstract class GenericPlayerManager : MonoBehaviour { this.subtitles.updateLetterSpeed(); } - UnityEngine.Debug.Log("Animação \"" + animName + "\" inexistente."); + UnityEngine.Debug.Log("GPM.sW(" + word + "): Animação \"" + animName + "\" inexistente."); } else { @@ -475,6 +477,8 @@ public abstract class GenericPlayerManager : MonoBehaviour { { lock (LOCKER_LOADING) { + Debug.Log("GPM.lAP(" + gloss + ")"); + this.randomAnimations.lockFor("loadAndPlay"); this.loading = true; setGlossWaiting(false); @@ -494,6 +498,8 @@ public abstract class GenericPlayerManager : MonoBehaviour { foreach (string aniName in stringPos) { + Debug.Log("GPM.lAP(" + gloss + "): Animation name: " + aniName); + wordsCount++; if (String.IsNullOrEmpty(aniName)) continue; @@ -507,12 +513,14 @@ public abstract class GenericPlayerManager : MonoBehaviour { if (www != null) { + Debug.Log("GPM:lAP(" + gloss + "): www != null"); yield return www; AssetBundle bundle = null; if (www.error == null) { + Debug.Log("GPM:lAP(" + gloss + "): www.error == null"); bundle = www.assetBundle; if (bundle != null && ! String.IsNullOrEmpty(bundle.mainAsset.name)) @@ -527,9 +535,9 @@ public abstract class GenericPlayerManager : MonoBehaviour { loadedAssetBundles.Add(aniName); loaded = true; - Debug.Log("Bundle \"" + aniName + "\" loaded!"); + Debug.Log("GPM:lAP(" + gloss + "): Bundle \"" + aniName + "\" loaded!"); } - else UnityEngine.Debug.Log ("Sinal \"" + aniName + "\" foi não carregado corretamente."); + else Debug.Log ("GPM:lAP(" + gloss + "): Sinal \"" + aniName + "\" foi não carregado corretamente."); } } else onConnectionError(gloss, aniName); @@ -567,7 +575,7 @@ public abstract class GenericPlayerManager : MonoBehaviour { if ( ! nonexistent) nonexistentAssetBundles.Add(aniName); - UnityEngine.Debug.Log("~~ To spell: " + aniName); + UnityEngine.Debug.Log("GPM:lAP(" + gloss + "): To spell: " + aniName); if (this.flags.Contains(aniName) || this.intervalAnimations.Contains(aniName)) { @@ -607,6 +615,8 @@ public abstract class GenericPlayerManager : MonoBehaviour { { lock (LOCKER_PLAYING) { + UnityEngine.Debug.Log("GPM:hS()"); + this.randomAnimations.lockFor("handleStates"); this.playing = true; onPlayingStateChange(); @@ -631,6 +641,7 @@ public abstract class GenericPlayerManager : MonoBehaviour { // Se estiver sendo reproduzida if (COMPONENT_ANIMATION.IsPlaying(reference.name)) { + Debug.Log("GPM:hS(): Playing " + reference.name); this.subtitles.setText(reference.subtitle); // Animação seguinte @@ -684,6 +695,7 @@ public abstract class GenericPlayerManager : MonoBehaviour { lock (this.animQueue) { isNotEmpty = this.animQueue.Count > 0; } } + UnityEngine.Debug.Log("GPM:sH(): All done."); this.subtitles.setText(""); -- libgit2 0.21.2