HKI Core
AudioPlayer.cs
Go to the documentation of this file.
1 using UnityEngine;
2 using System.Collections;
3 using System.Collections.Generic;
4 using HKI.Core.Loc;
5 
6 namespace HKI.Core.Audio
7 {
11  [AddComponentMenu("HKI/Audio/Audio Player")]
13  {
14  // Public variables
15  [SerializeField] bool DoSetupOnStart = true;
16  [SerializeField] AudioPlayerSettings StartSettings = new AudioPlayerSettings();
17 
18  // Getter
19  public AudioPlayerSettings GetStartSettings { get { return StartSettings; } }
20 
21  // Start function
22  void Start()
23  {
24  if(DoSetupOnStart)
25  Setup(StartSettings);
26  }
27  }
28 }
This is a AudioPlayer that can play playlist or SoundClips. It allows to play multiple clips at once ...
This is an extention of the SimpleAudioPlayer. It allows the automatic Setup of the SimpleAudioPlayer...
Definition: AudioPlayer.cs:12