public void HandleStartupResponse(string requestId) { StartUpResponse startUpResponse = NetworkManager.Instance.GetResponse <StartUpResponse>(requestId); Debug.Log(" startup response received "); Debug.Log(" startup status : " + startUpResponse.StartupStatus.ToString()); Debug.Log(" player status : " + startUpResponse.PlayerStatus.ToString()); if (startUpResponse.StartupStatus == StartUpResponse.Types.StartupResponseStatus.MajorUpdate) { ActionManager.instance.TriggerEvent("OpenUserLogin"); //PopupManager.Instance.CreatePopup("Major Update", startUpResponse.Message, "update", null, delegate { // Debug.LogError(" going to update page "); //}); return; } else if (startUpResponse.StartupStatus == StartUpResponse.Types.StartupResponseStatus.MinorUpdate) { //PopupManager.Instance.CreatePopup("Minor Update", startUpResponse.Message, "update", "skip", delegate { // Debug.LogError(" going to update page "); //}, //delegate { //}); } if (startUpResponse.PlayerStatus == StartUpResponse.Types.PlayerStatus.PlayerBanned) { //PopupManager.Instance.CreatePopup("Banned!!", startUpResponse.Message, "update", null, delegate { // Debug.LogError(" close the game "); //}); return; } else if (startUpResponse.PlayerStatus == StartUpResponse.Types.PlayerStatus.PlayerNotFound || startUpResponse.PlayerStatus == StartUpResponse.Types.PlayerStatus.PlayerFound) { Whiteboard.SetProperty(GameConstants.Player.STARTUP_PLAYER_STATUS, startUpResponse.PlayerStatus); Whiteboard.SetProperty(GameConstants.Player.PLAYER_PROFILE, startUpResponse.PlayerProfile); SceneManager.LoadScene("GameScene"); return; } }