I'd like to play one of the sound outside of AC namespace. Is it possible?
I'd like to do something like this:
AC.Sound scoreSound = (AC.Sound) GameObject.Find("SoundScorePoints");
scoreSound.Play(true);
But seems I can't get the AC.Sound. It gives me back:
"error CS0030: Cannot convert type `UnityEngine.GameObject' to `AC.Sound'"
I tried also to declare it in the public variables and set it in the editor, without success.
Is there a way to implement outside AC actions?
Otherwise I'll create a specific action.
Comments
AC.Sound scoreSound = (AC.Sound) GameObject.Find("SoundScorePoints").GetComponent ();