void Awake() { Instance = this; resourceManager = new GameResourceManager(); resourceManager.Init(); battleManager = new BattleObjectManager(); playerManager = new PlayerStateManager(); }
public static void Init() { ServerGame.GameDatabase = new CouchbaseDatabase("magic-players", "game"); GameResourceManager.Init(); GameMatchmakingManager.Init(); GameDuelMatchmakingManager.Init(); GameAvatarManager.Init(); GameSessionManager.Init(); LiveReplayManager.Init(); GameBaseGenerator.Init(); WordCensorUtil.Init(); }