public static ActivateProfessionView Open(PlayerData playerData) { ActivateProfessionView view = UIMgr.instance.Open <ActivateProfessionView>(ActivateProfessionView.PREFAB_PATH, EUISortingLayer.MainUI, UIOpenMode.Overlay); view.SetPlayerData(playerData); return(view); }
public void ClickChangeProfessionButtonHandler() { if (PlayerProxy.instance.IsPlayerUnlocked((int)_selectedPlayerData.Id)) { PlayerInfo playerInfo = PlayerProxy.instance.GetPlayerDataCorrespondingPlayerInfo((int)_selectedPlayerData.Id); PlayerController.instance.CLIENT2LOBBY_PLAYER_CHANGE_REQ((int)playerInfo.instanceID); } else { ActivateProfessionView.Open(_selectedPlayerData); } }