private void LoadInputConfig() { bool testing = false; string deviceName = string.Empty; var scn = GameObject.FindObjectOfType <TGBaseScene>(); deviceName = string.Empty; testing = TGGameConfig.GetValue("测试", 0) == 1; deviceName = TGGameConfig.GetValue("训练器材", string.Empty); TGData.SetDevice(deviceName, testing); }