Exemplo n.º 1
0
        public SEUnit AllocLoopPlayer(AudioClip clip, Vector3 position, Quaternion rotate, float volumeScale)
        {
            GameObject obj  = AllocPlayerUnit(position, rotate);
            SEUnit     unit = obj.GetComponent <SEUnit>();

            unit.PlayLoop(clip, m_pool, volumeScale);
            return(unit);
        }
Exemplo n.º 2
0
        public SEUnit AllocPlayer(AudioClip clip, Vector3 position, Quaternion rotate)
        {
            GameObject obj  = AllocPlayerUnit(position, rotate);
            SEUnit     unit = obj.GetComponent <SEUnit>();

            unit.PlayOneShot(clip, m_pool);
            return(unit);
        }