Exemplo n.º 1
0
 static AdaptivePerformanceSubsystemDescriptor RegisterDescriptor()
 {
     return(AdaptivePerformanceSubsystemDescriptor.RegisterDescriptor(new AdaptivePerformanceSubsystemDescriptor.Cinfo
     {
         id = "TestAdaptivePerformanceSubsystem",
         subsystemImplementationType = typeof(TestAdaptivePerformanceSubsystem)
     }));
 }
        static void RegisterDescriptor()
        {
            if (!SystemInfo.deviceModel.StartsWith("samsung", StringComparison.OrdinalIgnoreCase))
            {
                return;
            }

            if (!NativeApi.IsAvailable())
            {
                return;
            }

            AdaptivePerformanceSubsystemDescriptor.RegisterDescriptor(new AdaptivePerformanceSubsystemDescriptor.Cinfo
            {
                id = "SamsungGameSDK",
                subsystemImplementationType = typeof(SamsungGameSDKAdaptivePerformanceSubsystem)
            });
        }