gg.easy.airship 0.1.2158 → 0.1.2159
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -274,7 +274,12 @@ public class LoginApp : MonoBehaviour {
|
|
|
274
274
|
}
|
|
275
275
|
|
|
276
276
|
// Different login route is required for the playtest app.
|
|
277
|
-
var prodApp =
|
|
277
|
+
var prodApp = true;
|
|
278
|
+
#if STEAMWORKS_NET
|
|
279
|
+
prodApp = SteamUtils.GetAppID().m_AppId == 2381730;
|
|
280
|
+
#else
|
|
281
|
+
print("Pressed login with steam but STEAMWORKS_NET is not enabled.");
|
|
282
|
+
#endif
|
|
278
283
|
RestClient.Get(new RequestHelper() {
|
|
279
284
|
Uri = AirshipPlatformUrl.gameCoordinator + (prodApp ? "/auth/steam/in-game" : "/auth/steam/in-game-playtest"),
|
|
280
285
|
Headers = new Dictionary<string, string>() {
|
|
@@ -1537,7 +1537,18 @@ namespace Mirror
|
|
|
1537
1537
|
public virtual void OnClientSceneChanged()
|
|
1538
1538
|
{
|
|
1539
1539
|
// always become ready.
|
|
1540
|
-
if (!NetworkClient.connection.isAuthenticated)
|
|
1540
|
+
if (!NetworkClient.connection.isAuthenticated) {
|
|
1541
|
+
#if AIRSHIP_PLAYER
|
|
1542
|
+
Debug.LogWarning("Not sending client ready: not authenticated");
|
|
1543
|
+
#endif
|
|
1544
|
+
}
|
|
1545
|
+
|
|
1546
|
+
if (NetworkClient.ready) {
|
|
1547
|
+
#if AIRSHIP_PLAYER
|
|
1548
|
+
Debug.LogWarning("Not sending client ready: already ready");
|
|
1549
|
+
#endif
|
|
1550
|
+
}
|
|
1551
|
+
|
|
1541
1552
|
if (NetworkClient.connection.isAuthenticated && !NetworkClient.ready) NetworkClient.Ready();
|
|
1542
1553
|
|
|
1543
1554
|
// Only call AddPlayer for normal scene changes, not additive load/unload
|