ClickButtonPlayTimeLine.cs 651 B

123456789101112131415161718192021222324252627
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. using ShadowKit;
  5. using ShadowKit.Action;
  6. using SC.InputSystem;
  7. public class ClickButtonPlayTimeLine : PointerDelegate
  8. {
  9. void Start () {
  10. }
  11. protected override void partAnyKeyDownDelegate(InputKeyCode keyCode, InputDevicePartBase part)
  12. {
  13. if (keyCode == InputKeyCode.Trigger)
  14. {
  15. if (API_InputSystem.Target != gameObject)
  16. {
  17. return;
  18. }
  19. MessageCenterController.Instance.Broadcast(GameEnum.MESSAGE_TIMELINBUTTON_CLICK);
  20. }
  21. }
  22. }