File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- // /**
2- // * ┏┓ ┏┓+ +
3- // * ┏┛┻━━━┛┻┓ + +
4- // * ┃ ┃
5- // * ┃ ━ ┃ ++ + + +
6- // * ████━████ ┃+
7- // * ┃ ┃ +
8- // * ┃ ┻ ┃
9- // * ┃ ┃ + +
10- // * ┗━┓ ┏━┛
11- // * ┃ ┃
12- // * ┃ ┃ + + + +
13- // * ┃ ┃ Code is far away from bug with the animal protecting
14- // * ┃ ┃ + 神兽保佑,代码无bug
15- // * ┃ ┃
16- // * ┃ ┃ +
17- // * ┃ ┗━━━┓ + +
18- // * ┃ ┣┓
19- // * ┃ ┏┛
20- // * ┗┓┓┏━┳┓┏┛ + + + +
21- // * ┃┫┫ ┃┫┫
22- // * ┗┻┛ ┗┻┛+ + + +
23- // *
24- // *
25- // * ━━━━━━感觉萌萌哒━━━━━━
26- // *
27- // * 说明:
28- // * 用于Android 和IOS 平台的粘贴板的读写访问
29- // * 文件名:BlankOperationClipboard.cs
30- // * 创建时间:2016年07月14日
31- // * 创建人:Blank Alian
32- // */
33-
34- using UnityEngine ;
35-
36-
1+ using UnityEngine ;
372#if UNITY_IOS
383using System . Runtime . InteropServices ;
394#endif
405
416/// <summary>
427/// 粘贴板的读写
438/// </summary>
44- public sealed class BlankOperationClipboard
9+ public static class BlankOperationClipboard
4510{
4611#if UNITY_IOS
4712 [ DllImport ( "__Internal" ) ]
4813 private static extern string GetClipBoard ( ) ;
4914
5015 [ DllImport ( "__Internal" ) ]
5116 private static extern void SetClipBoard ( string text ) ;
52-
5317#endif
5418
5519
You can’t perform that action at this time.
0 commit comments