void Update() { if (hideTab == true) { if (isPos == false) { pos = transform.localPosition; pos1 = new Vector3(-1000, pos.y, pos.z); isPos = true; } transform.localPosition = Vector3.Lerp(pos, pos1, lerpVal); lerpVal += Time.deltaTime * 2; if (lerpVal >= 1) { serverLoadingPanel.SetActive(false); GameObject msgItemGet = GameObject.Find("GameManager").GetComponent <HangarManager>().msgItemGet; HangarPopupController hpController = GameObject.Find("GameManager").GetComponent <HangarPopupController>(); hpController.AddPopWin(msgItemGet, 0); transform.parent.GetComponent <RearrangeMessageScript>().RearrangeTabs(this.gameObject); } } }
public IEnumerator ScoreAnim() { GameObject HalfBLKPanel = GameObject.Find("Windows").transform.FindChild("HalfBLKPanel").gameObject; //Debug.Log("점수계산하러옴?"); int interval = scorePlay / 60; Debug.Log("::::::ScoreAnimScoreAnimScoreAnimScoreAnimScoreAnimScoreAnimScoreAnim:::::"); HangarPopupController hpController = GameObject.Find("GameManager").GetComponent <HangarPopupController>(); int pListCount = hpController.PopupListCount(); while (HalfBLKPanel.activeSelf == true || pListCount > 0) { yield return(new WaitForSeconds(0.15f)); pListCount = hpController.PopupListCount(); } while (rollingScore < scorePlay) { rollingScore += interval; gameObject.GetComponent <UILabel>().text = rollingScore.ToString(); yield return(null); } gameObject.GetComponent <UILabel>().text = scorePlay.ToString(); }
void recieveMsg02() { ValueDeliverScript.SaveGameData(EndNetwork); GameObject msgItemGet = GameObject.Find("GameManager").GetComponent <HangarManager>().msgItemGet; HangarPopupController hpController = GameObject.Find("GameManager").GetComponent <HangarPopupController>(); hpController.AddPopWin(msgItemGet, 0); }
//딴곳에서 임시로 가지고 온것// void SeccessSendFuel03() { Debug.Log("연료보내기 여기옴? 007_1"); //팝업창 보이게 함// GameObject fuelSend = GameObject.Find("GameManager").GetComponent <HangarManager>().fuelSend; HangarPopupController hpController = GameObject.Find("GameManager").GetComponent <HangarPopupController>(); hpController.AddPopWin(fuelSend, 0); //우리쪽 서버에까지 적용이 다 끝나면 그때서야 비로소 앱 터치를 막은 것을 풀어준다// isNetwork = false; Debug.Log("연료보내기 여기옴? 007_2 :: isNetwork :: " + isNetwork); serverLoadingPanel.SetActive(false); Debug.Log("연료 지급 완료!"); gasStatusOn.SetActive(false); gasStatusOff.SetActive(true); fuelRemainTime.SetActive(true); fuelRemainTime.GetComponent <UILabel>().text = "90m"; friendInfo.FuelSendTime = (System.DateTime.UtcNow).ToBinary().ToString(); string fbId = friendInfo.FbId; int rLength = 0; if (ValueDeliverScript.rankDataFB.Length == null) { rLength = 0; } if (rLength > 0) { for (int i = 0; i < rLength; i++) { if (fbId == ValueDeliverScript.rankDataFB[i].FbId) { ValueDeliverScript.rankDataFB[i].FuelSendTime = friendInfo.FuelSendTime; Debug.Log("Fuel Send Time ::: " + ValueDeliverScript.rankDataFB[i].FuelSendTime); break; } } } ValueDeliverScript.SaveFuelSendTime(friendInfo.FbId, friendInfo.FuelSendTime); Debug.Log("연료보내기 여기옴? 007_3 :: isNetwork :: " + isNetwork); }
void showPop() { //맨처음엔 먼저 초대를 해본적이 있는가부터 시작(inviteDay키 여부 검사)// //없으면 판별할 수 있게 inviteDay와 inviteCount를 세팅해준다// if (!PlayerPrefs.HasKey("inviteDay")) { PlayerPrefs.SetInt("inviteDay", System.DateTime.Today.DayOfYear); PlayerPrefs.SetInt("inviteCount", 0); } //같은 날짜인지 먼저 확인 아니면 새로운 날짜를 부여해주고 초대카운트를 0으로 만들어 준다. if (System.DateTime.Today.DayOfYear != PlayerPrefs.GetInt("inviteDay")) { PlayerPrefs.SetInt("inviteDay", System.DateTime.Today.DayOfYear); PlayerPrefs.SetInt("inviteCount", 0); } // 초대 수를 비교하여 최대 치를 못 넘게 만든다// int ivtCnt = PlayerPrefs.GetInt("inviteCount"); if (ivtCnt < ValueDeliverScript.maxInvite) { if ((ivtCnt + ValueDeliverScript.inviteCount) >= ValueDeliverScript.maxInvite) { ValueDeliverScript.inviteCount = ValueDeliverScript.maxInvite - ivtCnt; PlayerPrefs.SetInt("inviteCount", ValueDeliverScript.maxInvite); } else { PlayerPrefs.SetInt("inviteCount", ivtCnt + ValueDeliverScript.inviteCount); } } else { ValueDeliverScript.inviteCount = 0; } GameObject.Find("GasRestLabel").GetComponent <GasRestLabelScript>().GasRest(ValueDeliverScript.inviteCount, false); HangarPopupController hpController = GameObject.Find("GameManager").GetComponent <HangarPopupController>(); hpController.AddPopWin(friendInvite, 0, FriendInvteF); }