Commit 6b3c85b7d876017634b4f44fc4a7980dd39f14a3
1 parent
5ec26cc3
Exists in
master
and in
4 other branches
Refactoring
Showing
2 changed files
with
2 additions
and
4 deletions
Show diff stats
Assets/Scripts/Player Manager/GenericPlayerManager.cs
| ... | ... | @@ -154,12 +154,10 @@ public abstract class GenericPlayerManager : MonoBehaviour { |
| 154 | 154 | subtitles.updateNumberSpeed(); |
| 155 | 155 | |
| 156 | 156 | // Altera a velocidade de todas as animações em reprodução |
| 157 | - if ( ! paused) lock (this.animQueue) | |
| 158 | - { | |
| 157 | + if ( ! paused) | |
| 159 | 158 | foreach (AnimationReference reference in this.animQueue) |
| 160 | 159 | if (reference.type != Subtitle.TYPE_NONE && reference.state != null) |
| 161 | 160 | reference.state.speed = getSpeedByType(reference.type); |
| 162 | - } | |
| 163 | 161 | } |
| 164 | 162 | |
| 165 | 163 | /* Retorna a velocidade para o tipo */ | ... | ... |
Assets/Scripts/PlayerManager.cs
| ... | ... | @@ -141,7 +141,7 @@ public class PlayerManager : GenericPlayerManager { |
| 141 | 141 | } |
| 142 | 142 | |
| 143 | 143 | public override void onPlayingStateChange() { |
| 144 | - this.screenManager.changeStates(base.isPlaying(), base.isPaused(), ! String.IsNullOrEmpty(base.gloss)); | |
| 144 | + this.screenManager.changeStates(base.isPlaying(), base.isPaused(), base.isRepeatable()); | |
| 145 | 145 | } |
| 146 | 146 | |
| 147 | 147 | public override void onConnectionError(string gloss, string word) | ... | ... |