获取控制器电量值。
调用函数成功返回控制器电量值,失败返回-1。
if (null == controller) { Debug.LogError("Controller is null"); } else { int batteryLevel = controller.GetBatteryLevel(); }