Example #1
0
        public void PlayOneShot(AudioClip clip, CustomObjectPool unUsePool)
        {
            if (!source)
            {
                source = GetComponent <AudioSource>();
            }

            source.PlayOneShot(clip);
            isWorking      = true;
            this.unUsePool = unUsePool;
        }