UI换了很多,spine主视觉停用
This commit is contained in:
+20
-6
@@ -25,15 +25,22 @@ public class steamCheck : MonoBehaviour
|
||||
{
|
||||
#if DISABLESTEAMWORKS
|
||||
steamReady = false;
|
||||
SetFailText("当前平台未启用 Steamworks");
|
||||
SetFailText("Current platform has Steamworks disabled");
|
||||
return;
|
||||
#else
|
||||
if (!SteamManager.SteamVerificationEnabled)
|
||||
{
|
||||
steamReady = true;
|
||||
SetWelcomeText();
|
||||
return;
|
||||
}
|
||||
|
||||
steamReady = SteamManager.Initialized;
|
||||
Debug.Log("Steam Init 状态: " + steamReady);
|
||||
Debug.Log("Steam Init status: " + steamReady);
|
||||
|
||||
if (!steamReady)
|
||||
{
|
||||
SetFailText("Steam 初始化失败");
|
||||
SetFailText("Steam initialization failed");
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -45,21 +52,28 @@ public class steamCheck : MonoBehaviour
|
||||
void SetWelcomeText()
|
||||
{
|
||||
#if DISABLESTEAMWORKS
|
||||
SetFailText("当前平台未启用 Steamworks");
|
||||
SetFailText("Current platform has Steamworks disabled");
|
||||
#else
|
||||
if (!SteamManager.SteamVerificationEnabled)
|
||||
{
|
||||
if (welcomeText != null)
|
||||
welcomeText.text = "Steam verification disabled";
|
||||
return;
|
||||
}
|
||||
|
||||
if (welcomeText == null)
|
||||
return;
|
||||
|
||||
if (!steamReady)
|
||||
{
|
||||
SetFailText("Steam 未初始化");
|
||||
SetFailText("Steam not initialized");
|
||||
return;
|
||||
}
|
||||
|
||||
string playerName = SteamFriends.GetPersonaName();
|
||||
CSteamID steamID = SteamUser.GetSteamID();
|
||||
|
||||
welcomeText.text = $"欢迎特别测试专员 {playerName} ({steamID.m_SteamID})";
|
||||
welcomeText.text = $"{playerName} ({steamID.m_SteamID})";
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user