|
|
|
|
@ -105,16 +105,18 @@ public class StatManager : MonoBehaviour |
|
|
|
|
} |
|
|
|
|
else if (m_timer > trigger_time) |
|
|
|
|
{ |
|
|
|
|
if(aud == null) |
|
|
|
|
if (aud == null) |
|
|
|
|
{ |
|
|
|
|
aud = gameObject.AddComponent<AudioSource>(); |
|
|
|
|
aud.loop = false; |
|
|
|
|
aud.playOnAwake = false; |
|
|
|
|
if (use_horse_sound) |
|
|
|
|
aud.clip = horse_clip; |
|
|
|
|
else |
|
|
|
|
aud.clip = no_horse_clip; |
|
|
|
|
aud.Play(); |
|
|
|
|
h_player.Play(); |
|
|
|
|
aud.loop = false; |
|
|
|
|
aud.playOnAwake = false; |
|
|
|
|
if (use_horse_sound) |
|
|
|
|
aud.clip = horse_clip; |
|
|
|
|
else |
|
|
|
|
aud.clip = no_horse_clip; |
|
|
|
|
aud.Play(); |
|
|
|
|
h_player.Play(); |
|
|
|
|
} |
|
|
|
|
//m_timer = 0f; |
|
|
|
|
Debug.Log("horse fade in"); |
|
|
|
|
|
|
|
|
|
|