public void Stop(IMusicGun gun) { if (m_table.TryGetValue(gun, out var player)) { player.Stop(); } }
public void Push(IMusicGun gun, IMusicAmmo ammo) { if (m_table.TryGetValue(gun, out var player)) { player.Push(ammo); } }
//========================================== // Method //========================================== public MusicPlayer(IMusicGun gun) { m_gun = gun; }
internal static void Stop(IMusicGun gun) { Shooter?.Stop(gun); }
/// <summary> /// 履歴に積んで再生 /// </summary> internal static void Push(IMusicGun gun, IMusicAmmo ammo) { Shooter?.Push(gun, ammo); }
/// <summary> /// 履歴を戻して再生 /// </summary> internal static void Pop(IMusicGun gun) { Shooter?.Pop(gun); }
//================================= // Method //================================= /// <summary> /// 通常再生 /// </summary> /// <param name="ammo"></param> internal static void Fire(IMusicGun gun, IMusicAmmo ammo) { Shooter?.Fire(gun, ammo); }