示例#1
0
        //-------------------------------------------------
        //  FastenerSE開始
        //-------------------------------------------------
        public void StartSound_SEF(Fastener_SE sound)
        {
            if (IsFMovePlaying(sound))
            {
                return;
            }

            //音再生
            seFSource.clip = seFSound[(int)sound];
            seFSource.Play();
        }
示例#2
0
 //-------------------------------------------------
 //  FastenerSE作動中か確認
 //-------------------------------------------------
 bool IsFMovePlaying(Fastener_SE sound)
 {
     if (sound != Fastener_SE.Move)
     {
         return(false);
     }
     if (seFSource.clip != seFSound[(int)Fastener_SE.Move])
     {
         return(false);
     }
     if (!seFSource.isPlaying)
     {
         return(false);
     }
     return(true);
 }