XtMsHook.cs 952 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using UnityEngine;
  6. namespace CM3D2.XtMasterSlave.Plugin
  7. {
  8. class Hook
  9. {
  10. static XtMasterSlave xtms;
  11. public static void hookPreAutoTwist(TBody tbody)
  12. {
  13. if (!xtms)
  14. xtms = GameObject.FindObjectOfType<XtMasterSlave>();
  15. if (xtms)
  16. xtms.preTBodyAutoTwist(tbody);
  17. }
  18. /*public static void hookBodyPreLateUpdate(TBody body)
  19. {
  20. if (!xtms)
  21. xtms = GameObject.FindObjectOfType<XtMasterSlave>();
  22. if (xtms)
  23. xtms.preBodyLateUpdate(body);
  24. }*/
  25. /*
  26. public static void hookIKPreLateUpdate(object ikctrl)
  27. {
  28. if (!xtms)
  29. xtms = GameObject.FindObjectOfType<XtMasterSlave>();
  30. if (xtms)
  31. xtms.postIKUpdate(ikctrl);
  32. }*/
  33. }
  34. }