GUIMessages.cs 1.1 KB

12345678910111213141516171819202122232425262728293031323334
  1. #if UNITY_EDITOR
  2. using UnityEngine;
  3. namespace O3DWB
  4. {
  5. public class InspectorGUIWasChangedMessage : Message
  6. {
  7. #region Private Variables
  8. private InspectorGUIIdentifier _activeInspectorGUIIdentifier;
  9. #endregion
  10. #region Public Properties
  11. public InspectorGUIIdentifier ActiveInspectorGUIIdentifier { get { return _activeInspectorGUIIdentifier; } }
  12. #endregion
  13. #region Constructors
  14. public InspectorGUIWasChangedMessage(InspectorGUIIdentifier activeInspectorGUIIdentifier)
  15. : base(MessageType.InspectorGUIWasChanged)
  16. {
  17. _activeInspectorGUIIdentifier = activeInspectorGUIIdentifier;
  18. }
  19. #endregion
  20. #region Public Static Functions
  21. public static void SendToInterestedListeners(InspectorGUIIdentifier activeInspectorGUIIdentifier)
  22. {
  23. var message = new InspectorGUIWasChangedMessage(activeInspectorGUIIdentifier);
  24. MessageListenerDatabase.Instance.SendMessageToInterestedListeners(message);
  25. }
  26. #endregion
  27. }
  28. }
  29. #endif