public static SoundPlayerSingletone GetPlayerIstanse()
 {
     lock (padlock)
     {
         if (PlayerSinglton == null)
         {
             PlayerSinglton = new SoundPlayerSingletone();
         }
         return(PlayerSinglton);
     }
 }
Ejemplo n.º 2
0
 public void GetVoice()
 {
     SoundPlayerSingletone.GetPlayerIstanse().PlayByRelPath(VoiceRelPath);
 }