コード例 #1
0
 public static SoundPlayerSingletone GetPlayerIstanse()
 {
     lock (padlock)
     {
         if (PlayerSinglton == null)
         {
             PlayerSinglton = new SoundPlayerSingletone();
         }
         return(PlayerSinglton);
     }
 }
コード例 #2
0
ファイル: Player.cs プロジェクト: kuhciob/PatternPractice
 public void GetVoice()
 {
     SoundPlayerSingletone.GetPlayerIstanse().PlayByRelPath(VoiceRelPath);
 }