File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33using System . Collections ;
44using System . Collections . Generic ;
55using System . Linq ;
6- #if ! UNITY_WEBGL
7- using System . Security . Policy ;
8- #endif
96using TMPro ;
107using UnityEngine ;
118using UnityEngine . Events ;
129using UnityEngine . Networking ;
1310using UnityEngine . UI ;
11+ #if UNITY_WEBGL && ! UNITY_EDITOR
12+ using System . Runtime . InteropServices ;
13+ #endif
14+ #if ! UNITY_WEBGL
15+ using System . Security . Policy ;
16+ #endif
1417
1518public class APIManager : MonoBehaviour
1619{
Original file line number Diff line number Diff line change 1313using UnityEngine . UI ;
1414#if UNITY_WEBGL
1515using System . Collections . Specialized ;
16+ using System . Runtime . InteropServices ;
1617#endif
1718
1819#if UNITY_EDITOR
2324
2425using UnityEditor . Build ;
2526using UnityEditor . Build . Reporting ;
26-
27+
2728public class MsvcStdextWorkaround : IPreprocessBuildWithReport
2829{
2930 const string kWorkaroundFlag = "/D_SILENCE_STDEXT_HASH_DEPRECATION_WARNINGS" ;
@@ -50,6 +51,11 @@ public void OnPreprocessBuild(BuildReport report)
5051
5152namespace TrajectoryPlanner
5253{
54+ #if UNITY_WEBGL && ! UNITY_EDITOR
55+ [ DllImport ( "__Internal" ) ]
56+ private static extern void Copy2Clipboard ( string str ) ;
57+ #endif
58+
5359 public class TrajectoryPlannerManager : MonoBehaviour
5460 {
5561
You can’t perform that action at this time.
0 commit comments