Unity–Stealth秘密行动开发(一):封装标签Tags 在游戏开发中,更多的是在输入的控制中,把输入封装成标签,在调用的时候,只需要通过改标签, 减少游戏的一个耦合性,也可以对游戏减少错误 Tags.cs public class Tags { public const string player = "Player";//玩家 public const string gameController = "GameCon