AnyButtomClickEvent.cs 659 B

12345678910111213141516171819202122232425262728293031
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using GameFramework;
  4. using GameFramework.Event;
  5. using UnityEngine;
  6. using UnityEngine.UI;
  7. public class AnyButtomClickEvent : GameEventArgs
  8. {
  9. public static readonly int EventId = typeof(AnyButtomClickEvent).GetHashCode();
  10. public override int Id
  11. {
  12. get
  13. {
  14. return EventId;
  15. }
  16. }
  17. public Button btn;
  18. public static AnyButtomClickEvent Create(Button _tbtn)
  19. {
  20. AnyButtomClickEvent args = ReferencePool.Acquire<AnyButtomClickEvent>();
  21. args.btn = _tbtn;
  22. return args;
  23. }
  24. public override void Clear()
  25. {
  26. }
  27. }