Beispiel #1
0
 private void Awake()
 {
     s_instance = this;
 }
Beispiel #2
0
 private void OnDestroy()
 {
     s_instance = null;
 }
Beispiel #3
0
        private static AudioClip GetAudioClip(SoundType type)
        {
            var sounds = GameAssets.Get().GetSoundClips().First(x => x.Type == type).Clips;

            return(sounds[Random.Range(0, sounds.Length)]);
        }