void Start() { mon = GameObject.Find("GameObj").GetComponent <Monster>(); game = GameObject.Find("GameObj").GetComponent <Game>(); DI = GameObject.Find("DataObj").GetComponent <DataIni>(); //finishWord = ""; }
private async void BtnRefine_ButtonClicked(object sender, EventArgs e) { waitActivityIndicator.IsVisible = true; waitActivityIndicator.IsRunning = true; if (_dataFim < _dataIni) { await DisplayAlert("Ops!", "A data de fim não pode ser maior que a data início da pesquisa!", "Entendi!"); DataIni.Focus(); waitActivityIndicator.IsVisible = false; waitActivityIndicator.IsRunning = false; return; } DtoFiltro filtro = new DtoFiltro() { Assunto = pckAssunto.SelectedIndex != -1 ? pckAssunto.Items[pckAssunto.SelectedIndex].ToString() : "Clipping do Dia", ChkImpresso = chkJr.Checked ? true : false, ChkTv = chkTv.Checked ? true : false, ChkRd = chkRd.Checked ? true : false, ChkOnline = chkOnline.Checked ? true : false, ChkInter = chkInter.Checked ? true : false, ChkMSocial = chkMSocial.Checked ? true : false, Palavra = txtPalavra.Text, NomeBanco = _nomeBanco, Cliente = _nomeCliente, DataIni = _dataIni, DataFim = _dataFim }; waitActivityIndicator.IsVisible = false; waitActivityIndicator.IsRunning = false; await Navigation.PushAsync(new ListMaterias(filtro)); }
// Use this for initialization void Start() { //Screen.SetResolution(Screen.width* 16 / 9, Screen.width , false); //Screen.SetResolution(960, 720, false); //Screen.SetResolution(1152, 648, false); DI = GameObject.Find("DataObj").GetComponent <DataIni>(); mon = GameObject.Find("GameObj").GetComponent <Monster>(); dAJ = GameObject.Find("DataObj").GetComponent <DataArrayJson>(); moiTwitter = GameObject.Find("TwitterObj").GetComponent <MOITwitter>(); easyTweenMadeSlotPopUp = GameObject.Find("PopUpButtonAnim").GetComponent <EasyTween>(); easyTweenLevelUpInfoPopUp = GameObject.Find("LevelUpInfoAnim").GetComponent <EasyTween>(); easyTweenUnitMakeHintInfoPopUp = GameObject.Find("UnitMakeHintInfoAnim").GetComponent <EasyTween>(); madeSlotViewPort = GameObject.Find("MadeSlotViewPort"); madeSlotScrollbarVertical = GameObject.Find("MadeSlotScrollbarVertical").GetComponent <Scrollbar>(); madeSlotScrollbarVerticalValue = madeSlotScrollbarVertical.value; checkExp(); charDearDegree = new int[mon.charcount]; charCardRank = new int[mon.charcount]; unitDebutHistory = new bool[mon.unitcount]; ReadInIData(); maxSkillPoint = level * 10 + 100; skillPoint = 0; skillOnCheck = new bool[5]; WriteGameData(); CheckMadeSlotCount(); CheckCharDegreeList(); PutCardInSlotAtFirst(); AvailableChar(); AvailableCharNow(level); levelUpCheck = false; secondcheck = true; SlotCardMaKe(); }
//private CreateAnimImage createAnimImage0; //private CreateAnimImage createAnimImage1; // Use this for initialization void Start() { mon = GameObject.Find("GameObj").GetComponent <Monster>(); game = GameObject.Find("GameObj").GetComponent <Game>(); DI = GameObject.Find("DataObj").GetComponent <DataIni>(); madeSlot = new GameObject[8]; madeSlot[0] = GameObject.Find("Made Slot Button 0"); madeSlot[1] = GameObject.Find("Made Slot Button 1"); madeSlot[2] = GameObject.Find("Made Slot Button 2"); madeSlot[3] = GameObject.Find("Made Slot Button 3"); madeSlot[4] = GameObject.Find("Made Slot Button 4"); madeSlot[5] = GameObject.Find("Made Slot Button 5"); madeSlot[6] = GameObject.Find("Made Slot Button 6"); madeSlot[7] = GameObject.Find("Made Slot Button 7"); skillButtonObject = new GameObject[5]; skillButtonObject[0] = GameObject.Find("Skill Button 0"); skillButtonObject[1] = GameObject.Find("Skill Button 1"); skillButtonObject[2] = GameObject.Find("Skill Button 2"); skillButtonObject[3] = GameObject.Find("Skill Button 3"); skillButtonObject[4] = GameObject.Find("Skill Button 4"); finishWord = ""; cardSlot = new string[5]; mButton = new Button[5]; mButText = new Text[5]; mButton[0] = GameObject.Find("Member Button 0").GetComponent <Button>(); mButton[1] = GameObject.Find("Member Button 1").GetComponent <Button>(); mButton[2] = GameObject.Find("Member Button 2").GetComponent <Button>(); mButton[3] = GameObject.Find("Member Button 3").GetComponent <Button>(); mButton[4] = GameObject.Find("Member Button 4").GetComponent <Button>(); for (int i = 0; i < 5; i++) { mButText[i] = mButton[i].GetComponentInChildren <Text>(); } madeSlotButton = new Button[8]; madeSlotButtonText = new Text[8]; for (int i = 0; i < 8; i++) { madeSlotButton[i] = madeSlot[i].GetComponent <Button>(); madeSlotButtonText[i] = madeSlotButton[i].GetComponentInChildren <Text>(); } skillButton = new Button[5]; skillButtonText = new Text[5]; for (int i = 0; i < 5; i++) { skillButton[i] = skillButtonObject[i].GetComponent <Button>(); skillButtonText[i] = skillButton[i].GetComponentInChildren <Text>(); } skillPointText = GameObject.Find("SkillPointText").GetComponent <Text>(); nTurnButton = GameObject.Find("Next Turn Button").GetComponent <Button>(); nTurnButText = nTurnButton.GetComponentInChildren <Text>(); pointDisplay = GameObject.Find("Point Text").GetComponent <Text>(); maxCombo = GameObject.Find("Combo Text").GetComponent <Text>(); RemainTurnText = new Text[5]; RemainTurnText[0] = GameObject.Find("Remain Turn Text 0").GetComponent <Text>(); RemainTurnText[1] = GameObject.Find("Remain Turn Text 1").GetComponent <Text>(); RemainTurnText[2] = GameObject.Find("Remain Turn Text 2").GetComponent <Text>(); RemainTurnText[3] = GameObject.Find("Remain Turn Text 3").GetComponent <Text>(); RemainTurnText[4] = GameObject.Find("Remain Turn Text 4").GetComponent <Text>(); popUpButtonMadeText = GameObject.Find("PopUpButtonMadeText").GetComponent <Text>(); //madeSlotGetExpDPWriteBg = GameObject.Find("MadeSlotGetExpDPWriteBg").GetComponent<Button>(); //madeSlotGetExpDPText = madeSlotGetExpDPWriteBg.GetComponentInChildren<Text>(); //madeSlotGetSpDPWriteBg = GameObject.Find("MadeSlotGetSpDPWriteBg").GetComponent<Button>(); //madeSlotGetSpDPText = madeSlotGetSpDPWriteBg.GetComponentInChildren<Text>(); levelUpDPBg = GameObject.Find("LevelUpDPBg").GetComponent <Button>(); levelUpDPBgText = levelUpDPBg.GetComponentInChildren <Text>(); levelUpInfoDPBg = GameObject.Find("LevelUpInfoDPBg").GetComponent <Button>(); levelUpInfoDPBgText = levelUpInfoDPBg.GetComponentInChildren <Text>(); unitMakeHintDPBg = GameObject.Find("UnitMakeHintDPBg").GetComponent <Button>(); unitMakeHintBgText = unitMakeHintDPBg.GetComponentInChildren <Text>(); unitMakeHintInfoDPBg = GameObject.Find("UnitMakeHintInfoDPBg").GetComponent <Button>(); unitMakeHintInfoDPBgText = unitMakeHintInfoDPBg.GetComponentInChildren <Text>(); madeSlotHistoryPopUp = GameObject.Find("MadeSlotInfoPopUp_CheckButt").GetComponent <Button>(); madeSlotCountText = madeSlotHistoryPopUp.GetComponentInChildren <Text>(); madeSlotInfoPopUp_CheckButtAfter = GameObject.Find("MadeSlotInfoPopUp_CheckButtAfter").GetComponent <Button>(); madeSlotInfoPopUp_CheckButtAfter.gameObject.SetActive(false); madeSlotAvailableUnit = GameObject.Find("MadeSlotAvailableUnit").GetComponent <Button>(); madeSlotAvailableUnitText = madeSlotAvailableUnit.GetComponentInChildren <Text>(); createMadeSlotHistoryList = GameObject.Find("HistroyListCreateAnimImage").GetComponent <CreateAnimImage>(); //historyDisplay = GameObject.Find("Make History Text").GetComponent<Text>(); charDegreeInfoPopUp = GameObject.Find("CharDegreeInfoPopUp_CheckButt").GetComponent <Button>(); charDegreeInfoPopUp_CheckButtAfter = GameObject.Find("CharDegreeInfoPopUp_CheckButtAfter").GetComponent <Button>(); charDegreeInfoPopUp_CheckButtAfter.gameObject.SetActive(false); charDegreeAvailableChar = GameObject.Find("CharDegreeAvailableChar").GetComponent <Button>(); charDegreeAvailableCharText = charDegreeAvailableChar.GetComponentInChildren <Text>(); createCharDegreeList = GameObject.Find("CharDegreeListCreateAnimImage").GetComponent <CreateAnimImage>(); drawCardPopUp = GameObject.Find("DrawCardPopUp_CheckButt").GetComponent <Button>(); drawCardResultDP2Bg = GameObject.Find("DrawCardResultDP2Bg").GetComponent <Button>(); drawCardResultDP2Bg10 = GameObject.Find("DrawCardResultDP2Bg10").GetComponent <Button>(); drawCardResultDP2BgText = drawCardResultDP2Bg.GetComponentInChildren <Text>(); drawCardResultDP2Bg10Text = drawCardResultDP2Bg10.GetComponentInChildren <Text>(); settingPopUp_CheckButt = GameObject.Find("SettingPopUp_CheckButt").GetComponent <Button>(); descriptionBg = GameObject.Find("DescriptionBg").GetComponent <Button>(); description2Bg = GameObject.Find("Description2Bg").GetComponent <Button>(); descriptionBgText = descriptionBg.GetComponentInChildren <Text>(); description2BgText = description2Bg.GetComponentInChildren <Text>(); easyTweenDescriptionPopUp = GameObject.Find("DescriptionPopUpAnim").GetComponent <EasyTween>(); //drawCardPopUp_CheckButtAfter = GameObject.Find("DrawCardPopUp_CheckButtAfter").GetComponent<Button>(); //drawCardPopUp_CheckButtAfter.gameObject.SetActive(false); easyTweenDrawCardResultPopUp = GameObject.Find("DrawCardResultPopUpAnim").GetComponent <EasyTween>(); easyTweenDrawCardResultPopUp10 = GameObject.Find("DrawCardResultPopUp10Anim").GetComponent <EasyTween>(); easyTweenNotifyNoCreditPopUp = GameObject.Find("NotifyNoCreditPopUpAnim").GetComponent <EasyTween>(); //createAnimImage0 = FindObjectOfType<CreateAnimImage>(); //createAnimImage1 = FindObjectOfType<CreateAnimImage>(); }