void UnitMakeHintInfoData() { GameCanvasGui gCanvas = GameObject.Find("UIObj").GetComponent <GameCanvasGui>(); gCanvas.unitMakeHintBgText.text = "아직 데뷔하지 못한 유닛 힌트"; int unitNumberOfHint; unitNumberOfHint = unitCanDebutList[UnityEngine.Random.Range(0, availableUnitNowCount - 1)]; //gCanvas.unitMakeHintInfoDPBgText.text = mon.expLvData2[level, 5]; StringBuilder str = new StringBuilder(); int unitcount = Convert.ToInt16(mon.unitData2[unitNumberOfHint, 14]); for (int i = 0; i < unitcount; i++) { str.Append(mon.charData2[Convert.ToInt16(mon.unitData2[unitNumberOfHint, i + 4]), 1]); if (i < unitcount - 1) { str.Append(", "); } } str.Append("의 " + unitcount + "인 유닛으로 조합해 보시면 어떨까요?'"); //Debug.Log(unitNumberOfHint); gCanvas.unitMakeHintInfoDPBgText.text = str.ToString(); }
// Use this for initialization void Start() { game = GameObject.Find("GameObj").GetComponent <Game>(); gCanvas = GameObject.Find("UIObj").GetComponent <GameCanvasGui>(); condCannotCB.normalColor = new Color32(128, 128, 128, 255); condCannotCB.highlightedColor = new Color32(128, 128, 128, 255); condCannotCB.pressedColor = new Color32(128, 128, 128, 255); condCannotCB.disabledColor = new Color32(128, 128, 128, 255); condCannotCB.colorMultiplier = 1; condCannotCB.fadeDuration = 0.1f; condCanCB.normalColor = new Color32(100, 233, 115, 200); condCanCB.highlightedColor = new Color32(100, 233, 115, 200); condCanCB.pressedColor = new Color32(100, 233, 115, 200); condCanCB.disabledColor = new Color32(100, 233, 115, 200); condCanCB.colorMultiplier = 1; condCanCB.fadeDuration = 0.1f; condUsingCB.normalColor = new Color32(255, 50, 100, 255); condUsingCB.highlightedColor = new Color32(255, 50, 100, 255); condUsingCB.pressedColor = new Color32(255, 50, 100, 255); condUsingCB.disabledColor = new Color32(255, 50, 100, 255); condUsingCB.colorMultiplier = 1; condUsingCB.fadeDuration = 0.1f; }
void LevelUpInfoData() { GameCanvasGui gCanvas = GameObject.Find("UIObj").GetComponent <GameCanvasGui>(); gCanvas.levelUpDPBgText.text = "Level " + level + " 달성"; gCanvas.levelUpInfoDPBgText.text = mon.expLvData2[level, 5]; }
// Use this for initialization void Start() { game = GameObject.Find("GameObj").GetComponent <Game>(); gCanvas = GameObject.Find("UIObj").GetComponent <GameCanvasGui>(); defaultCB = gCanvas.nTurnButton.colors; selectedCB.normalColor = new Color32(255, 127, 0, 255); selectedCB.highlightedColor = new Color32(255, 127, 0, 255); selectedCB.pressedColor = new Color32(255, 127, 0, 255); selectedCB.disabledColor = new Color32(255, 127, 0, 255); selectedCB.colorMultiplier = 1; selectedCB.fadeDuration = 0.1f; }
void UnitDebut(int decideUnit2) { GameCanvasGui gCanvas = GameObject.Find("UIObj").GetComponent <GameCanvasGui>(); pointCanDrawCard = pointCanDrawCard + 1; DI.SetDrawCardPoint(); StringBuilder str = new StringBuilder(); int unitcount = Convert.ToInt16(mon.unitData2[decideUnit2, 14]); for (int i = 0; i < unitcount; i++) { str.Append(mon.charData2[Convert.ToInt16(mon.unitData2[decideUnit2, i + 4]), 8]); if (i < unitcount - 1) { str.Append(", "); } } str.Append("의 " + unitcount + "인 유닛 '" + mon.unitData2[decideUnit2, 1] + "'"); str.Append("의 데뷔를 축하해 주세요. "); str.Append("\nMaster Of Idol, 신데렐라 멤버들을 모아 유닛으로 데뷔시키는 것은 프로듀서, 바로 당신! \n#MOIDEBUT"); // 멤버 A, 멤버 B, 멤버 C, (멤버 D), (멤버 E)가 유닛 ‘XXXXXXXXXXXXXXX’로 데뷔(컴백)하였습니다. unitDebutHistory[decideUnit2] = true; DI.SetUnitDebutHistoryString(); CheckMadeSlotCount(); CheckCharDegreeList(); //gCanvas.madeSlotCountText.text = Convert.ToString(madeSlotCount); moiTwitter.stringForTwit = str.ToString(); gCanvas.popUpButtonMadeText.text = moiTwitter.stringForTwit; //StringBuilder str2 = new StringBuilder(); //str2.Append("Score 획득: "); //str2.Append(sumDearDegree + getExpWhenMadeSlot); //gCanvas.madeSlotGetExpDPText.text = str2.ToString(); //StringBuilder str3 = new StringBuilder(); //str3.Append("Sp 획득: "); //str3.Append(unitcount * 10); //gCanvas.madeSlotGetSpDPText.text = str3.ToString(); easyTweenMadeSlotPopUp.OpenCloseObjectAnimation(); Debug.Log("You just made them DO DEBUT : " + mon.unitData2[decideUnit2, 1] + " Unit Number : " + decideUnit2); }
void SlotCardMaKe() { GameCanvasGui gCanvas = GameObject.Find("UIObj").GetComponent <GameCanvasGui>(); slotCardList = new List <int>(); List <int> tempUnitList = new List <int>(); //Debug.Log("initialize"); //slotCardList.Clear(); for (int i = 0; i < 5; i++) { slotCardList.Add(cardSlot[i]); //Debug.Log(slotCardList[i]); } for (int i = 0; i < mon.unitcount - 1; i++) { for (int y = 0; y < 5; y++) { if (unitArray[i, y] == 0) { break; } tempUnitList.Add(unitArray[i, y]); //Debug.Log(unitArray[i, y]); } bool isSubset = !tempUnitList.Except(slotCardList).Any(); if (isSubset) { //secondcheck = true; //Debug.Log(isSubset); //Debug.Log(i + 1 + " : " + mon.unitData2[i+1,1]); madeSlotList.Add(i + 1); //Debug.Log(madeSlotList[0]); } tempUnitList.Clear(); madeSlotViewPort.transform.position = new Vector2(madeSlotViewPort.transform.position.x, -285); madeSlotScrollbarVertical.value = madeSlotScrollbarVerticalValue; //Debug.Log("END"); } }
// Use this for initialization void Start() { game = GameObject.Find("GameObj").GetComponent <Game>(); mon = GameObject.Find("GameObj").GetComponent <Monster>(); gCanvas = GameObject.Find("UIObj").GetComponent <GameCanvasGui>(); oLCardSlot = new Outline[5]; defaultCB = gCanvas.mButton[0].colors; selectedCB.normalColor = new Color32(255, 127, 0, 255); selectedCB.highlightedColor = new Color32(255, 127, 0, 255); selectedCB.pressedColor = new Color32(255, 127, 0, 255); selectedCB.disabledColor = new Color32(255, 127, 0, 255); selectedCB.colorMultiplier = 1; selectedCB.fadeDuration = 0.1f; for (int i = 0; i < 5; i++) { oLCardSlot[i] = gCanvas.mButText[i].GetComponent <Outline>(); } }
// Use this for initialization void Start() { game = GameObject.Find("GameObj").GetComponent <Game>(); mon = GameObject.Find("GameObj").GetComponent <Monster>(); gCanvas = GameObject.Find("UIObj").GetComponent <GameCanvasGui>(); selectedCB.normalColor = new Color32(100, 233, 115, 200); selectedCB.highlightedColor = new Color32(100, 233, 115, 200); selectedCB.pressedColor = new Color32(100, 233, 115, 200); selectedCB.disabledColor = new Color32(100, 233, 115, 200); selectedCB.colorMultiplier = 1; selectedCB.fadeDuration = 0.1f; notYetDebutCB.normalColor = new Color32(0, 255, 0, 255); notYetDebutCB.highlightedColor = new Color32(0, 255, 0, 255); notYetDebutCB.pressedColor = new Color32(0, 255, 0, 255); notYetDebutCB.disabledColor = new Color32(0, 255, 0, 255); notYetDebutCB.colorMultiplier = 1; notYetDebutCB.fadeDuration = 0.1f; //for (int i = 0; i < 6; i++) //{ // gCanvas.madeSlotButton[0].colors = selectedCB; //} }
void Start() { game = GameObject.Find("GameObj").GetComponent <Game>(); gCanvas = GameObject.Find("UIObj").GetComponent <GameCanvasGui>(); }