摘要: 判断字符串是否与变量相符 利用Equals()来判断字符串是否与变量一致 using System.Collections; using System.Collections.Generic; using UnityEngine; public class MainPlayer : MonoBeha 阅读全文
posted @ 2023-02-15 18:37 快给我上菜 阅读(7) 评论(0) 推荐(0)
摘要: 1. 引入头文件 #include<Windows.h> 2. 获取窗口句柄 char testTitle[]="XXXXXXXX.exe"; char testClass[]="XXXXXXXClass"; HWND windowHandle= FindWindowA(testClass, tes 阅读全文
posted @ 2021-07-16 11:38 快给我上菜 阅读(366) 评论(0) 推荐(0)
摘要: 将一些unity的功能进行简化,节约时间 1. 引入命名空间 using UnityEditor; using System;//因为要获取当前pc时间,所以引入system命名空间 2. 添加自定义菜单 [MenuItem("FstWork/功能优化/1.快捷导出UnityPackage %e", 阅读全文
posted @ 2021-07-09 15:55 快给我上菜 阅读(395) 评论(0) 推荐(0)