示例#1
0
    public static bool setPlayerPhoto(string imageUrl, UISprite spEmptyFace, PhotoDownLoader face, PhotoDownLoadType type, int photoSize = -1)
    {
        if (imageUrl == null || imageUrl.ToLower().Contains("http") == false)
        {
            face.gameObject.SetActive(false);
            if (imageUrl == null)
            {
                imageUrl = "";
            }
            switch (imageUrl.ToUpper())
            {
            case Character.LEO:
                spEmptyFace.spriteName = Character.LEO_IMG;
                break;

            case Character.CHLOE:
                spEmptyFace.spriteName = Character.CHLOE_IMG;
                break;

            case Character.KILEY:
                spEmptyFace.spriteName = Character.KILEY_IMG;
                break;

            default:
                spEmptyFace.spriteName = Character.EMPTY_IMG;
                break;
            }
        }
        else
        {
            face.gameObject.SetActive(true);

            if (type != PhotoDownLoadType.DownLoad)
            {
                face.init(imageUrl);
            }

            if (type != PhotoDownLoadType.Init)
            {
                if (photoSize > 0)
                {
                    face.down(imageUrl, photoSize);
                }
                else
                {
                    face.down(imageUrl);
                }
            }

            return(true);
        }

        return(false);
    }
 public override void setPhotoLoad()
 {
     if (data == null)
     {
         return;
     }
     if (epi.GAME_DATA.appFriendDic.ContainsKey(data.senderId))
     {
         face.down(epi.GAME_DATA.appFriendDic[data.senderId].image_url);
     }
     else if (epi.GAME_DATA.friendDic.ContainsKey(data.senderId))
     {
         face.down(epi.GAME_DATA.friendDic[data.senderId].image_url);
     }
 }
    IEnumerator startDownload(string msg)
    {
        float timeLimit = 0;

        if (useScaleTween && ani != null)
        {
            while (ani.isPlaying && timeLimit < 1.5f)
            {
                timeLimit += 0.1f;
                yield return(Util.ws01);
            }
        }
        yield return(Util.ws01);

        photo.init(msg);
        photo.down(msg);

        float timeout = 10.0f;

        while (timeout > 0 && (photo.mainTexture == null || photo.mainTexture.enabled == false))
        {
            timeout -= 0.05f;
            yield return(new WaitForSeconds(0.05f));
        }

        spLoading.gameObject.SetActive(false);
    }
示例#4
0
 public override void setPhotoLoad()
 {
     if (_imgUrl != null)
     {
         photo.down(_imgUrl);
     }
 }
 public override void setPhotoLoad()
 {
     if (_data != null && _data.imageUrl != null)
     {
         photo.down(_data.imageUrl);
     }
 }
示例#6
0
 public override void setPhotoLoad()
 {
     if (data == null)
     {
         return;
     }
     face.down(epi.GAME_DATA.appFriendDic[data.userId].image_url);
 }
 public override void setPhotoLoad()
 {
     if (userId == null)
     {
         return;
     }
     face.down(epi.GAME_DATA.friendDic[userId].image_url);
 }
 public override void setPhotoLoad()
 {
     if (data == null)
     {
         return;
     }
     photo.down(data.imageUrl);
 }
示例#9
0
    public override void setPhotoLoad()
    {
        if (data == null)
        {
            return;
        }

        if (data.showPhoto == WSDefine.TRUE)
        {
            face.down(data.imageUrl);
        }
    }
    public void setData(string friendId, int leftNum, int reward)
    {
        _friendId = friendId;

        friendlyPVPId = friendId;

        UIPlay.playerImageUrl = PandoraManager.instance.localUser.image_url;
        UIPlay.pvpImageUrl    = epi.GAME_DATA.appFriendDic[friendId].image_url;

        UIPlay.playerLeagueGrade = GameDataManager.instance.champLeague;

        if (GameDataManager.instance.friendDatas != null)
        {
            UIPlay.pvpleagueGrade = GameDataManager.instance.friendDatas[friendId].league;
        }
        else
        {
            Debug.LogError("Can't find friend's league information");
        }

        playerFace.init(PandoraManager.instance.localUser.image_url);
        pvpFace.init(UIPlay.pvpImageUrl);

        playerFace.down(PandoraManager.instance.localUser.image_url);
        pvpFace.down(UIPlay.pvpImageUrl);

        lbPlayerName.text = Util.GetShortID(PandoraManager.instance.localUser.f_Nick, 10);
        lbPVPName.text    = Util.GetShortID(epi.GAME_DATA.appFriendDic[friendId].f_Nick, 10);
        PlayerPrefs.SetString("PVPNAME", lbPVPName.text);
        GameManager.me.uiManager.popupChampionshipResult.pvpName = lbPVPName.text;

        PlayerPrefs.SetString("CURRENT_FRIENDLY_ENEMY_NAME", epi.GAME_DATA.appFriendDic[friendId].f_Nick);
        GameManager.me.uiManager.popupChampionshipResult.enemyName = epi.GAME_DATA.appFriendDic[friendId].f_Nick;

        lbTitle.text = Util.getUIText("FRIENDLY_MATCH");

//		본인 액트	상대 챔피언십 등급별 획득 경험치
//			브론즈	실버	골드	마스터	플래티넘	레전드
//				1	3	6	9	12	15	19
//				2	7	14	20	27	34	41
//				3	14	28	42	56	70	84
//				4	24	49	73	97	122	146



        lbReward.text       = Util.GetCommaScore(reward);   // 승리시 획득 경험치.
        lbRubyUsingNum.text = (leftNum).ToString();         // 남은 친선경기 횟수.

        lbRewardWord.text = Util.getUIText("FRIENDLY_WINNING_GOLD");
    }
示例#11
0
    IEnumerator startDownload(string url)
    {
        yield return(Util.ws01);

        photo.init(url);
        photo.down(url);

        float timeout = 10.0f;

        while (timeout > 0 && (photo.mainTexture == null || photo.mainTexture.enabled == false))
        {
            timeout -= 0.05f;
            yield return(new WaitForSeconds(0.05f));
        }
    }
示例#12
0
    IEnumerator startDownload(string msg)
    {
        yield return(new WaitForSeconds(0.05f));

        photo.init(msg);
        photo.down(msg);

        float timeout = 10.0f;

        while (timeout > 0 && (photo.mainTexture == null || photo.mainTexture.enabled == false))
        {
            timeout -= 0.05f;
            yield return(new WaitForSeconds(0.05f));
        }

        spLoading.gameObject.SetActive(false);
    }
示例#13
0
    public void setData(P_Champion data, bool isRematch, int slotIndex)
    {
        _data      = data;
        _isRematch = isRematch;

        UIPlay.playerImageUrl = PandoraManager.instance.localUser.image_url;
        UIPlay.pvpImageUrl    = (data.imageUrl == null)?"":data.imageUrl;

        playerFace.init(PandoraManager.instance.localUser.image_url);
        playerFace.down(PandoraManager.instance.localUser.image_url);

        UIManager.setPlayerPhoto(data.showPhoto, data.imageUrl, spEmptyFace, pvpFace, true);

        // 같은 리그니까...
        UIPlay.playerLeagueGrade = GameDataManager.instance.champLeague;
        UIPlay.pvpleagueGrade    = GameDataManager.instance.champLeague;

        lbPlayerName.text = Util.GetShortID(GameDataManager.instance.name, 10);
        lbPVPName.text    = Util.GetShortID(data.nickname, 10);
        PlayerPrefs.SetString("PVPNAME", lbPVPName.text);
        GameManager.me.uiManager.popupChampionshipResult.pvpName = lbPVPName.text;

        switch (slotIndex)
        {
        case 0: _round = "R0"; matchNumber = 1; break;

        case 1: _round = "R1"; matchNumber = 2; break;

        case 2: _round = "R2"; matchNumber = 3; break;

        case 3: _round = "R3"; matchNumber = 4; break;

        case 4: _round = "R4"; matchNumber = 5; break;

        case 5: _round = "R5"; matchNumber = 6; break;

        case 6: _round = "R6"; matchNumber = 7; break;
        }

//		if(isRematch)
//		{
//			spStartPriceType.spriteName = "img_icn_cash";
//		}
//		else
//		{
//			spStartPriceType.spriteName = "img_icn_energe";
//		}

        lbTitle.text = (1 + slotIndex) + "차전";

        goReMatchContainer.SetActive(isRematch);

//		updateEnergy();
//		updateNextEnergy("-");

        if (isRematch)
        {
            lbStartPrice.text = GameDataManager.instance.championshipData.reattackRuby + "";
//			spStartPriceType.gameObject.SetActive(true);
            //spStartPriceType.spriteName = "img_icn_cash";
            btnRematch.gameObject.SetActive(true);
            btnAttack.gameObject.SetActive(false);
        }
        else
        {
            btnRematch.gameObject.SetActive(false);
            btnAttack.gameObject.SetActive(true);
        }
    }
    public void open(bool isFriendly = false)
    {
        if (isFriendly)
        {
            if (GameManager.me.stageManager.nowPlayingGameResult != Result.Type.Win)
            {
                AdviceData.checkAdvice(UISystemPopup.checkLevelupPopupAndReturnToScene);
                return;
            }
        }

        needGoToMenu = true;

        base.show();


        face.init(UIPlay.pvpImageUrl);
        face.down(UIPlay.pvpImageUrl);

        lbName.text = PlayerPrefs.GetString("PVPNAME", "");

        if (string.IsNullOrEmpty(lbName.text))
        {
            lbName.text = pvpName;
        }

//		lbRewardType.text = "";

        if (GameManager.me.stageManager.nowPlayingGameResult == Result.Type.Win)
        {
            spResultType.spriteName = "img_result_win";
            goWinContainer.SetActive(true);
//			goMoveContainer.transform.localPosition = new Vector3(-226.3281f,136.8f, -191.1182f);

            GameManager.soundManager.stopBG();
            SoundData.play("bgm_win_b");
        }
        else
        {
            spResultType.spriteName = "img_result_lose";
            goWinContainer.SetActive(false);
//			goMoveContainer.transform.localPosition = new Vector3(-226.3281f,104.6f, -191.1f);

            GameManager.soundManager.stopBG();
            SoundData.play("bgm_lose_a");
        }

        spResultType.MakePixelPerfect();

        lbWinCnt.gameObject.SetActive(false);
        lbLoseCnt.gameObject.SetActive(false);

        if (isFriendly)
        {
            goChampionshipPanel.gameObject.SetActive(false);
            lbWinPoint.gameObject.SetActive(false);
//			spPrizeIcon.spriteName = WSDefine.ICON_GOLD;
            //lbRewardType.text = Util.getUIText("RECEIVE_EXP");

            lbFriendlyResult.gameObject.SetActive(true);

            string pName = PlayerPrefs.GetString("CURRENT_FRIENDLY_ENEMY_NAME", "");
            if (string.IsNullOrEmpty(pName))
            {
                pName = enemyName;
            }


            if (GameManager.me.stageManager.nowPlayingGameResult == Result.Type.Win)
            {
                lbFriendlyResult.text = Util.getUIText("WINNING_FRIENDLY_PVP", pName, Util.getUIText("WIN"));
//				lbFriendlyGuide.text = Util.getUIText("FRIENDLY_REWARD_GUIDE");
                lbFriendlyGuide.enabled = false;
            }
            else
            {
                lbFriendlyResult.text   = Util.getUIText("WINNING_FRIENDLY_PVP", pName, Util.getUIText("LOSE"));
                lbFriendlyGuide.enabled = false;
            }
        }
        else
        {
            lbFriendlyResult.gameObject.SetActive(false);

//			spPrizeIcon.spriteName = WSDefine.ICON_GOLD;
            lbWinCnt.gameObject.SetActive(true);
            lbLoseCnt.gameObject.SetActive(true);

            goChampionshipPanel.gameObject.SetActive(true);

            int winCnt  = 0;
            int loseCnt = 0;
            for (int i = 0; i < UIChampionshipListSlotPanel.ROUND_IDS.Length; i++)
            {
                if (GameDataManager.instance.championshipData.champions[enemyId].attackRounds[UIChampionshipListSlotPanel.ROUND_IDS[i]].result == "W")
                {
                    winCnt++;
                }
                else if (GameDataManager.instance.championshipData.champions[enemyId].attackRounds[UIChampionshipListSlotPanel.ROUND_IDS[i]].result == "L")
                {
                    loseCnt++;
                }
            }

            lbWinCnt.text  = winCnt.ToString();
            lbLoseCnt.text = loseCnt.ToString();

//			lbRewardType.text = Util.getUIText("WINNING_PRIZE");
        }

        spPrizeIcon.MakePixelPerfect();

        lbWinPoint.gameObject.SetActive(false);

        if (isFriendly)
        {
            lbMatchNumber.text = Util.getUIText("FRIENDLY_MATCH");
        }
        else
        {
            lbMatchNumber.text = Util.getUIText("MATCH_NUMBER", matchNumber + "");


            //int point = 0;

            //_v = lbWinPoint.transform.localPosition;

            /*
             * if(GameManager.me.stageManager.nowPlayingGameResult == Result.Type.Win) point = 3;
             *
             * switch(matchNumber)
             * {
             * case 1:
             *      _v = btns[0].transform.localPosition;
             *      break;
             * case 2:
             *      _v = btns[1].transform.localPosition;
             *      break;
             * case 3:
             *      _v = btns[2].transform.localPosition;
             *      break;
             * }
             */

            //_v = lbWinCnt.transform.localPosition;

            if (score > 0)
            {
                //lbWinPoint.gameObject.SetActive(true);
                //lbWinPoint.text = "+"+score.ToString();

                /*
                 * _v.y += 30.0f;
                 * lbWinPoint.transform.localPosition = _v;
                 * lbWinPoint.text = "+"+score.ToString();
                 * _v.y += 60;
                 * Color c = lbWinPoint.color;
                 * c.a = 1.0f;
                 * lbWinPoint.color = c;
                 * c.a = 0.0f;
                 * StartCoroutine(playWinPointEffect(c));
                 */
            }
            else
            {
                //lbWinPoint.gameObject.SetActive(false);
            }
        }

        lbPrize.text = Util.GetCommaScore(prizeGold);
    }
示例#15
0
    public static void setPlayerPhoto(int showPhoto, string imageUrl, UISprite spEmptyFace, PhotoDownLoader face, bool downloadNow = false, int photoSize = -1)
    {
        if (showPhoto == WSDefine.TRUE)
        {
            if (imageUrl == null || imageUrl.ToLower().Contains("http") == false)
            {
                face.gameObject.SetActive(false);
                if (imageUrl == null)
                {
                    imageUrl = "";
                }
                switch (imageUrl.ToUpper())
                {
                case Character.LEO:
                    spEmptyFace.spriteName = Character.LEO_IMG;
                    break;

                case Character.CHLOE:
                    spEmptyFace.spriteName = Character.CHLOE_IMG;
                    break;

                case Character.KILEY:
                    spEmptyFace.spriteName = Character.KILEY_IMG;
                    break;

                default:
                    spEmptyFace.spriteName = Character.EMPTY_IMG;
                    break;
                }
            }
            else
            {
                face.gameObject.SetActive(true);
                face.init(imageUrl);
                if (downloadNow)
                {
                    if (photoSize > 0)
                    {
                        face.down(imageUrl, photoSize);
                    }
                    else
                    {
                        face.down(imageUrl);
                    }
                }
            }
        }
        else
        {
            face.gameObject.SetActive(false);
            if (imageUrl == null)
            {
                imageUrl = "";
            }
            switch (imageUrl.ToUpper())
            {
            case Character.LEO:
                spEmptyFace.spriteName = Character.LEO_IMG;
                break;

            case Character.CHLOE:
                spEmptyFace.spriteName = Character.CHLOE_IMG;
                break;

            case Character.KILEY:
                spEmptyFace.spriteName = Character.KILEY_IMG;
                break;

            default:
                spEmptyFace.spriteName = Character.EMPTY_IMG;
                break;
            }
        }
    }
示例#16
0
    public void resetUI()
    {
        spPlayerDamage.cachedGameObject.gameObject.SetActive(false);
        didShowHurryUp = false;
        spHurryup.gameObject.SetActive(false);

        warningAlpha.stop();

        playerChangeControlPanelEffect.gameObject.SetActive(false);

        hideMenu(0.0f);

        replaySpeed = 1;
        spReplaySpeed.spriteName = "img_replay_speed_1";

        lbGameTimer.color = Color.white;
        lbGameTimer.text  = GameManager.me.stageManager.settingTime.ToString();

        if (GameManager.me.playMode == GameManager.PlayMode.replay)
        {
            btnPause.gameObject.SetActive(false);
            btnReplayClose.gameObject.SetActive(false);
            btnReplaySpeed.gameObject.SetActive(false);

            GameManager.me.canUseAutoPlay = false;
        }
        else
        {
            btnPause.gameObject.SetActive(true);
            btnReplayClose.gameObject.SetActive(false);
            btnReplaySpeed.gameObject.SetActive(false);

            initAutoPlay();
        }

//#if UNITY_EDITOR
//		GameManager.me.canUseAutoPlay = true;
//#endif


        pvpContainer.gameObject.SetActive(false);
        playerHpBar.gameObject.SetActive(true);

        tfMiniMapContainer.gameObject.SetActive(true);

        _v = tfMiniMapContainer.localPosition;

        if (StageManager.instance.nowPlayingGameType == GameType.Mode.Championship)
        {
            _v.x = -60;
        }
        else
        {
            _v.x = 0;
        }

        tfMiniMapContainer.localPosition = _v;

        _v   = tfMiniMapBg.localPosition;
        _v.y = 310;
        tfMiniMapBg.localPosition = _v;


        lbRoundTime.text    = "";
        lbRoundLeftNum.text = "";
        lbRoundTime.color   = Color.white;

        lbChaser.text  = "";
        lbChaser.color = Color.white;
        lbChaser.gameObject.SetActive(false);

        _isLimitTimeMode = false;


        if (StageManager.instance.nowPlayingGameType != GameType.Mode.Hell)
        {
            updateLeftTime = (GameManager.me.stageManager.nowRound.settingTime > -1);
            hellModeInfo.gameObject.SetActive(false);
        }
        else
        {
            updateLeftTime = true;
            hellModeInfo.gameObject.SetActive(true);
        }

        if (GameManager.me.stageManager.nowRoundMode == RoundData.MODE.PVP)
        {
            _v   = btnAutoPlay.transform.localPosition;
            _v.x = 331f;
            _v.y = 233f;
            btnAutoPlay.transform.localPosition = _v;

            _v   = btnFastPlay.transform.localPosition;
            _v.x = 227f;
            _v.y = 233f;
            btnFastPlay.transform.localPosition = _v;
        }
        else
        {
            _v   = btnAutoPlay.transform.localPosition;
            _v.x = 460f;
            _v.y = 219.84f;
            btnAutoPlay.transform.localPosition = _v;

            _v   = btnFastPlay.transform.localPosition;
            _v.x = 355f;
            _v.y = 219.84f;
            btnFastPlay.transform.localPosition = _v;
        }


        if (GameManager.me.stageManager.nowRoundId == "INTRO")
        {
            challangeModeInfo.gameObject.SetActive(false);
            roundInfoContainer.SetActive(false);
            lbRoundTime.gameObject.SetActive(false);
            lbRoundLeftNum.gameObject.SetActive(false);
            btnPause.gameObject.SetActive(false);
        }
        else
        {
            switch (GameManager.me.stageManager.nowRoundMode)
            {
            case RoundData.MODE.KILLEMALL:
                lbRoundInfo.text = Util.getUIText("KILLEMALL");
                challangeModeInfo.gameObject.SetActive(false);
                roundInfoContainer.SetActive(true);
                lbRoundTime.transform.localPosition = ROUND_INFO_LABEL_SINGLE_POSITION;
                lbRoundTime.gameObject.SetActive(GameManager.me.stageManager.nowRound.settingTime > -1);
                lbRoundLeftNum.gameObject.SetActive(false);
                _isLimitTimeMode = lbRoundTime.gameObject.activeSelf;
                break;

            case RoundData.MODE.SURVIVAL:
                lbRoundInfo.text = Util.getUIText("SURVIVAL");
                challangeModeInfo.gameObject.SetActive(false);
                roundInfoContainer.SetActive(true);

                lbRoundTime.transform.localPosition = ROUND_INFO_LABEL_SINGLE_POSITION;
                lbRoundTime.gameObject.SetActive((GameManager.me.stageManager.nowRound.settingTime > -1));
                lbRoundLeftNum.gameObject.SetActive(false);

                _isLimitTimeMode = lbRoundTime.gameObject.activeSelf;

                didShowHurryUp = true;

                break;

            case RoundData.MODE.PROTECT:
                lbRoundInfo.text = Util.getUIText("PROTECT");
                challangeModeInfo.gameObject.SetActive(false);
                roundInfoContainer.SetActive(true);

                lbRoundTime.transform.localPosition = ROUND_INFO_LABEL_SINGLE_POSITION;
                lbRoundTime.gameObject.SetActive((GameManager.me.stageManager.nowRound.settingTime > -1));
                lbRoundLeftNum.gameObject.SetActive(false);

                _isLimitTimeMode = lbRoundTime.gameObject.activeSelf;

                didShowHurryUp = true;

                break;

            case RoundData.MODE.SNIPING:
                lbRoundInfo.text = Util.getUIText("SNIPING");
                challangeModeInfo.gameObject.SetActive(false);
                roundInfoContainer.SetActive(true);

                lbRoundTime.gameObject.SetActive((GameManager.me.stageManager.nowRound.settingTime > -1));

                lbRoundLeftNum.gameObject.SetActive(false);

                _isLimitTimeMode = lbRoundTime.gameObject.activeSelf;



                break;

            case RoundData.MODE.KILLCOUNT:
                lbRoundInfo.text = Util.getUIText("KILLCOUNT");
                challangeModeInfo.gameObject.SetActive(false);
                roundInfoContainer.SetActive(true);

                lbRoundTime.gameObject.SetActive(false);

                lbRoundLeftNum.transform.localPosition = new Vector3(-351, -13, 91);
                spRoundInfoLeftNumIcon.spriteName      = "img_mark_monster";
                lbRoundLeftNum.gameObject.SetActive(true);

                break;

            case RoundData.MODE.KILLCOUNT2:
                lbRoundInfo.text = Util.getUIText("KILLCOUNT");
                challangeModeInfo.gameObject.SetActive(false);
                roundInfoContainer.SetActive(true);

                lbRoundTime.gameObject.SetActive(false);

                lbRoundLeftNum.transform.localPosition = new Vector3(-351, -13, 91);
                lbRoundLeftNum.gameObject.SetActive(true);
                spRoundInfoLeftNumIcon.spriteName = "img_mark_monster";

                break;

            case RoundData.MODE.ARRIVE:
                lbRoundInfo.text = Util.getUIText("ARRIVE");
                challangeModeInfo.gameObject.SetActive(false);
                roundInfoContainer.SetActive(true);
                lbRoundTime.gameObject.SetActive((GameManager.me.stageManager.nowRound.settingTime > -1));
                lbRoundTime.transform.localPosition = new Vector3(-440, -13, 91);


                lbRoundLeftNum.gameObject.SetActive(true);
                spRoundInfoLeftNumIcon.spriteName = "img_mark_distance";

                if (lbRoundTime.gameObject.activeSelf)
                {
                    lbRoundLeftNum.transform.localPosition = new Vector3(-259, -13, 91);
                }
                else
                {
                    lbRoundLeftNum.transform.localPosition = new Vector3(-337, -13, 91);
                }

                _isLimitTimeMode = lbRoundTime.gameObject.activeSelf;

                if (GameManager.me.stageManager.nowRound.chaser != null)
                {
                    GameManager.me.uiManager.uiPlay.lbChaser.gameObject.SetActive(true);
                    GameManager.me.uiManager.uiPlay.lbChaser.text  = (-(int)((GameManager.me.stageManager.nowRound.playerStartPosX - GameManager.me.stageManager.nowRound.chaser.posX) * 0.01f)) + "m";
                    GameManager.me.uiManager.uiPlay.lbChaser.color = Color.white;
                }

                break;

            case RoundData.MODE.DESTROY:
                lbRoundInfo.text = Util.getUIText("DESTROY");
                challangeModeInfo.gameObject.SetActive(false);
                roundInfoContainer.SetActive(true);

                lbRoundTime.transform.localPosition = new Vector3(-476.6f, -14.8f, 91);
                lbRoundTime.gameObject.SetActive((GameManager.me.stageManager.nowRound.settingTime > -1));

                if (lbRoundTime.gameObject.activeSelf)
                {
                    lbRoundLeftNum.transform.localPosition = new Vector3(-259, -13, 91);
                }
                else
                {
                    lbRoundLeftNum.transform.localPosition = new Vector3(-351, -13, 91);
                }

                lbRoundLeftNum.gameObject.SetActive(true);
                spRoundInfoLeftNumIcon.spriteName = "img_mark_object";

                _isLimitTimeMode = lbRoundTime.gameObject.activeSelf;


                if (GameManager.me.stageManager.nowRound.chaser != null)
                {
                    GameManager.me.uiManager.uiPlay.lbChaser.gameObject.SetActive(true);
                    GameManager.me.uiManager.uiPlay.lbChaser.text  = (-(int)((GameManager.me.stageManager.nowRound.playerStartPosX - GameManager.me.stageManager.nowRound.chaser.posX) * 0.01f)) + "m";
                    GameManager.me.uiManager.uiPlay.lbChaser.color = Color.white;
                }

                break;

            case RoundData.MODE.GETITEM:
                lbRoundInfo.text = Util.getUIText("GETITEM");
                challangeModeInfo.gameObject.SetActive(false);
                roundInfoContainer.SetActive(true);

                lbRoundTime.transform.localPosition = new Vector3(-476.6f, -14.8f, 91);
                lbRoundTime.gameObject.SetActive((GameManager.me.stageManager.nowRound.settingTime > -1));

                if (lbRoundTime.gameObject.activeSelf == false)
                {
                    lbRoundLeftNum.transform.localPosition = new Vector3(-351, -13, 91);
                }
                else
                {
                    lbRoundLeftNum.transform.localPosition = new Vector3(-259, -13, 91);
                }

                lbRoundLeftNum.gameObject.SetActive(true);
                spRoundInfoLeftNumIcon.spriteName = "img_mark_item";

                _isLimitTimeMode = lbRoundTime.gameObject.activeSelf;
                _isLimitTimeMode = true;
                break;

            case RoundData.MODE.PVP:
                pvpContainer.gameObject.SetActive(true);
                playerHpBar.gameObject.SetActive(false);
                challangeModeInfo.gameObject.SetActive(false);
                roundInfoContainer.SetActive(false);

                playerFace.init(playerImageUrl);
                playerFace.down(playerImageUrl);

                pvpFace.init(pvpImageUrl);
                pvpFace.down(pvpImageUrl);


                _v   = tfMiniMapBg.localPosition;
                _v.y = 260;
                tfMiniMapBg.localPosition = _v;

                if (pvpImageUrl != null)
                {
                    if (pvpImageUrl.ToUpper().Contains("HTTP") == false)
                    {
                        switch (pvpImageUrl.ToUpper())
                        {
                        case Character.LEO:
                            spPvpEmptyFace.spriteName = Character.LEO_IMG;
                            break;

                        case Character.CHLOE:
                            spPvpEmptyFace.spriteName = Character.CHLOE_IMG;
                            break;

                        case Character.KILEY:
                            spPvpEmptyFace.spriteName = Character.KILEY_IMG;
                            break;

                        default:
                            spPvpEmptyFace.spriteName = Character.EMPTY_IMG;
                            break;
                        }
                    }
                }

                break;

            case RoundData.MODE.C_RUN:
                playerHpBar.gameObject.SetActive(true);
                tfMiniMapContainer.gameObject.SetActive(false);
                challangeModeInfo.gameObject.SetActive(true);
                roundInfoContainer.SetActive(false);
                break;

            case RoundData.MODE.C_SURVIVAL:
                playerHpBar.gameObject.SetActive(true);
                tfMiniMapContainer.gameObject.SetActive(false);
                challangeModeInfo.gameObject.SetActive(true);
                roundInfoContainer.SetActive(false);
                break;

            case RoundData.MODE.C_HUNT:
                playerHpBar.gameObject.SetActive(true);
                tfMiniMapContainer.gameObject.SetActive(false);
                challangeModeInfo.gameObject.SetActive(true);
                challangeModeInfo.progress = 0.0f;
                challangeModeInfo.rank     = 0;
                roundInfoContainer.SetActive(false);
                break;

            case RoundData.MODE.B_TEST:
                playerHpBar.gameObject.SetActive(true);
                tfMiniMapContainer.gameObject.SetActive(false);
                challangeModeInfo.gameObject.SetActive(true);
                challangeModeInfo.progress = 0.0f;
                challangeModeInfo.rank     = 0;
                challangeModeInfo.update(0);
                roundInfoContainer.SetActive(false);
                break;



            case RoundData.MODE.HELL:
//				lbRoundInfo.text = "WAVE 1";//"지옥의 균열";
                challangeModeInfo.gameObject.SetActive(false);
                roundInfoContainer.SetActive(true);

                lbRoundTime.gameObject.SetActive(false);
                lbRoundTime.transform.localPosition = new Vector3(-440, -13, 91);

                lbRoundLeftNum.gameObject.SetActive(false);
                spRoundInfoLeftNumIcon.spriteName = "img_mark_distance";

                lbRoundLeftNum.transform.localPosition = new Vector3(-259, -13, 91);

                _isLimitTimeMode = true;

                break;


            default:
                lbRoundInfo.text = GameManager.me.stageManager.nowRound.mode;
                break;
            }
        }

        if (StageManager.instance.nowPlayingGameType == GameType.Mode.Hell)
        {
            didShowHurryUp = false;
        }


        _v   = panelTop.localPosition;
        _v.x = 0.0f;
        _v.z = 0.0f;
        _v.y = 190.0f;
        panelTop.localPosition = _v;

        _v   = panelBottom.localPosition;
        _v.x = 0.0f;
        _v.z = 0.0f;
        _v.y = -190.0f;
        panelBottom.localPosition = _v;

#if UNITY_EDITOR
//		if(epi.GAME_DATA.localUser.userID == "88377728244541937")
//		{
//
//		}
//		else
#endif
        {
            bool showClearButton = false;

#if UNITY_EDITOR
            switch (PandoraManager.instance.localUser.userID)
            {
            case "91278939938273137":
            case "88377728244541937":
            case "88148076135084144":
                showClearButton = true;
                break;
            }
#endif

            if (DebugManager.useTestRound)
            {
                showClearButton = true;
            }

            if (EpiServer.instance.targetServer != EpiServer.SERVER.ALPHA)
            {
                showClearButton = false;
            }

#if UNITY_EDITOR
            showClearButton = true;
#endif

            btnClearGame.gameObject.SetActive(showClearButton);

            try
            {
                btnSkipCutScene.gameObject.collider.enabled = showClearButton;
            }
            catch (System.Exception e)
            {
            }
        }


        initMiniMap(false);
    }
示例#17
0
    public override void show()
    {
#if UNITY_EDITOR
        PandoraManager.instance.localUser.image_url = "http://office.linktomorrow.com/common/windsoul/resource/empty1.png";
#endif

        base.show();

        _currentCharacterIsMain = true;
        btnChangeToMain.gameObject.SetActive(false);
        btnChangeToSub.gameObject.SetActive(GameDataManager.instance.selectSubHeroId != null);

        startUpdateCharacter();
        refreshInfo();

        chracterCamera.fieldOfView = 15.0f * nowZoomSize;

        //characterCameraTransform.localPosition = defaultCameraTransformLocalPosition;

        _q.eulerAngles = defaultCameraTransformLocalRotation;
        chracterCamera.transform.localRotation = _q;


//		Debug.LogError("PandoraManager.instance.localUser.image_url : " + PandoraManager.instance.localUser.image_url);

        //playerPhoto.init(PandoraManager.instance.localUser.image_url);
        playerPhoto.down(PandoraManager.instance.localUser.image_url, 70);

#if UNITY_EDITOR
        if (DebugManager.instance.useDebug)
        {
            GameDataManager.instance.maxStage = 1;
            GameDataManager.instance.maxRound = 1;

            ++GameDataManager.instance.maxAct;

            if (GameDataManager.instance.maxAct > 5)
            {
                GameDataManager.instance.maxAct = 1;
            }
        }
#endif
        updateLobbyMap();

        spHasMissionIcon.gameObject.SetActive(GameDataManager.instance.hasClearMission);

        updateNewMsgAni();

        setHasNewMission(UIMission.checkHasNewMission());

        updateCamera();

        checkInventoryLimit();

        btnMission.gameObject.SetActive(GameDataManager.instance.roundClearStatusCheck(1, 1, 3));
        btnFriend.gameObject.SetActive(GameDataManager.instance.roundClearStatusCheck(1, 1, 3));


        if (GameManager.me.introStep == Scene.IntroStep.PlayGame)
        {
            GameManager.me.specialPackageManager.check();
        }
    }