SoundComponent.SoundGroup.cs 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. //------------------------------------------------------------
  2. // Game Framework
  3. // Copyright © 2013-2021 loyalsoft. All rights reserved.
  4. // Homepage: http://www.game7000.com/
  5. // Feedback: http://www.game7000.com/
  6. //------------------------------------------------------------
  7. using System;
  8. using UnityEngine;
  9. namespace UnityGameFramework.Runtime
  10. {
  11. public sealed partial class SoundComponent : GameFrameworkComponent
  12. {
  13. [Serializable]
  14. private sealed class SoundGroup
  15. {
  16. [SerializeField]
  17. private string m_Name = null;
  18. [SerializeField]
  19. private bool m_AvoidBeingReplacedBySamePriority = false;
  20. [SerializeField]
  21. private bool m_Mute = false;
  22. [SerializeField, Range(0f, 1f)]
  23. private float m_Volume = 1f;
  24. [SerializeField]
  25. private int m_AgentHelperCount = 1;
  26. public string Name
  27. {
  28. get
  29. {
  30. return m_Name;
  31. }
  32. }
  33. public bool AvoidBeingReplacedBySamePriority
  34. {
  35. get
  36. {
  37. return m_AvoidBeingReplacedBySamePriority;
  38. }
  39. }
  40. public bool Mute
  41. {
  42. get
  43. {
  44. return m_Mute;
  45. }
  46. }
  47. public float Volume
  48. {
  49. get
  50. {
  51. return m_Volume;
  52. }
  53. }
  54. public int AgentHelperCount
  55. {
  56. get
  57. {
  58. return m_AgentHelperCount;
  59. }
  60. }
  61. }
  62. }
  63. }