|
|
@@ -124,6 +124,15 @@ public class NewUserGuiderManager : MonoBehaviour
|
|
|
g.OnClick_ToNext();
|
|
|
}
|
|
|
});
|
|
|
+ Func<bool> action_DoConnectInterceptor = () => {
|
|
|
+ bool isConnected = BluetoothAim.ins.status == BluetoothStatusEnum.ConnectSuccess;
|
|
|
+ if (isConnected) {
|
|
|
+ g.OnClick_ToNext();
|
|
|
+ }
|
|
|
+ return isConnected;
|
|
|
+ };
|
|
|
+ BluetoothAim.ins.action_DoConnectInterceptor += action_DoConnectInterceptor;
|
|
|
+ g.action_OnDestroy += () => BluetoothAim.ins.action_DoConnectInterceptor -= action_DoConnectInterceptor;
|
|
|
};
|
|
|
configs.Add(config.key, config);
|
|
|
|