Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using UnityEngine;
- using System.Collections;
- using System.Collections.Generic;
- public class GameSystem : MonoBehaviour {
- void Start()
- {
- //Always call the init function first to use SoundsManager component
- SoundsManager.init();
- SoundsManager.instance.PlaySound (SoundsManager.AUDIO_INGAME, new Dictionary<string, object>{
- {SoundsManager.AUDIO_OPT_FADEIN,true},
- {SoundsManager.AUDIO_OPT_LOOP,true},
- {SoundsManager.AUDIO_OPT_VOLUME,0.5}
- });
- }
- void OnDestroy()
- {
- SoundsManager.instance.FadeOutSound (SoundsManager.AUDIO_INGAME);
- }
- }
- /*
- CREDIT
- ihsanberahim.com
- fiction-labs.com
- pkmedia.com.my
- */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement