2026-04-22 09:52:55 +08:00
|
|
|
using UnityEngine;
|
|
|
|
|
|
2026-04-27 11:20:13 +08:00
|
|
|
namespace RedHotRoast
|
2026-04-22 09:52:55 +08:00
|
|
|
{
|
|
|
|
|
public class NetworkManager : BaseUnityManager<NetworkManager>
|
|
|
|
|
{
|
2026-04-22 11:13:16 +08:00
|
|
|
#if GAME_RELEASE
|
2026-04-22 09:52:55 +08:00
|
|
|
public static string crazyUrl => true ? DomainReleaseUrl : DomainDebugUrl;
|
|
|
|
|
#else
|
|
|
|
|
public static string crazyUrl => false ? DomainReleaseUrl : DomainDebugUrl;
|
|
|
|
|
#endif
|
2026-04-22 11:13:16 +08:00
|
|
|
public const string DomainRelease = "frozenarena.top";
|
2026-04-22 09:52:55 +08:00
|
|
|
//is debug test--------
|
2026-04-22 11:13:16 +08:00
|
|
|
public const string DomainDebugUrl = @"https://swhitegames.top/api/";
|
2026-04-22 09:52:55 +08:00
|
|
|
public static readonly string DomainReleaseUrl = $"https://{DomainRelease}/api/";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2026-04-22 11:13:16 +08:00
|
|
|
public const string identifier = "com.dreamyfoxgame.legend";//没用到
|
2026-04-22 09:52:55 +08:00
|
|
|
private LoginSystem loginSystem;
|
|
|
|
|
private ConfigSystem configSystem;
|
|
|
|
|
private PlayDataSystem playDataSystem;
|
|
|
|
|
public static bool haveSimCard = false;
|
|
|
|
|
|
|
|
|
|
public override void Init()
|
|
|
|
|
{
|
|
|
|
|
InitSystem();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private void InitSystem()
|
|
|
|
|
{
|
|
|
|
|
loginSystem = new LoginSystem();
|
|
|
|
|
configSystem = new ConfigSystem();
|
|
|
|
|
playDataSystem = new PlayDataSystem();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|