Ejemplo n.º 1
0
 internal static void InstallEvents()
 {
     IPCountry_t.Install(x => OnIpCountryChanged?.Invoke());
     LowBatteryPower_t.Install(x => OnLowBatteryPower?.Invoke(x.MinutesBatteryLeft));
     SteamShutdown_t.Install(x => SteamClosed());
     GamepadTextInputDismissed_t.Install(x => OnGamepadTextInputDismissed?.Invoke(x.Submitted));
 }
Ejemplo n.º 2
0
 internal static void InstallEvents()
 {
     IPCountry_t.Install((IPCountry_t x) => {
         Action onIpCountryChanged = SteamUtils.OnIpCountryChanged;
         if (onIpCountryChanged != null)
         {
             onIpCountryChanged();
         }
         else
         {
         }
     }, false);
     LowBatteryPower_t.Install((LowBatteryPower_t x) => {
         Action <int> onLowBatteryPower = SteamUtils.OnLowBatteryPower;
         if (onLowBatteryPower != null)
         {
             onLowBatteryPower(x.MinutesBatteryLeft);
         }
         else
         {
         }
     }, false);
     SteamShutdown_t.Install((SteamShutdown_t x) => {
         Action onSteamShutdown = SteamUtils.OnSteamShutdown;
         if (onSteamShutdown != null)
         {
             onSteamShutdown();
         }
         else
         {
         }
     }, false);
     GamepadTextInputDismissed_t.Install((GamepadTextInputDismissed_t x) => {
         Action <bool> onGamepadTextInputDismissed = SteamUtils.OnGamepadTextInputDismissed;
         if (onGamepadTextInputDismissed != null)
         {
             onGamepadTextInputDismissed(x.Submitted);
         }
         else
         {
         }
     }, false);
 }
Ejemplo n.º 3
0
	void OnSteamShutdown(SteamShutdown_t pCallback) {
		Debug.Log("[" + SteamShutdown_t.k_iCallback + " - SteamShutdown]");
	}