API_Module_Notice.cs 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. 
  2. using System;
  3. using SC.XR.Unity;
  4. public class API_Module_Notice {
  5. public static void Show(float time){
  6. Module_Notice.getInstance.StartNotice(time);
  7. }
  8. public static void Close() {
  9. Module_Notice.getInstance.StopNotice();
  10. }
  11. public static void SetNotice(string mainString, string subString, NoticeType type = NoticeType.Warning, float distance = 0.8f, AlignmentType _anchorType = AlignmentType.Center, FollowType isFollower = FollowType.True) {
  12. Module_Notice.getInstance.SetNoticeInfo( mainString,subString,type ,distance, _anchorType, isFollower);
  13. }
  14. public static void SetNotice(string mainString, string subString)
  15. {
  16. Module_Notice.getInstance.SetNoticeInfo(mainString, subString);
  17. }
  18. public static void AddStrs(string mainstr,string substr)
  19. {
  20. Module_Notice.getInstance.AddStrsList(mainstr, substr);
  21. }
  22. public static void ShowMultipleNotice(float time)
  23. {
  24. Module_Notice.getInstance.StartMultipleNotice(time);
  25. }
  26. public static void CloseMultipleNotice()
  27. {
  28. Module_Notice.getInstance.StopMultipleNotice();
  29. }
  30. }