void Awake() { if (Application.loadedLevel != 2) { Destroy(this); } kAudioCtrl = AudioInputController.Instance; kSound = SoundManager.Instance; StartGame += GameCtrlStart; EndGame += GameCtrlEnd; kAudioCtrl.StartDetect(); }
// Use this for initialization void Start() { kAudioCtrl = AudioInputController.Instance; }