public void mapcodeCrossOnClick() { if (panel.activeSelf == false || mapcodeOpened) { Debug.Log("hello"); return; } mapcodeOpened = true; startTime = Time.time; panelActiveFalse = true; inputActiveFalse = true; imageFadeoutTrigger = true; textFadeTrigger = true; imageGameObjectList.Add(panel); imageStartColorList.Add(panel.GetComponent <Image>().color); imageToColorList.Add(new Color(127.0f / 255.0f, 56.0f / 255.0f, 98.0f / 255.0f, 0.0f)); imageGameObjectList.Add(mapcodecross); imageStartColorList.Add(cross.GetComponent <Image>().color); imageToColorList.Add(new Color(1.0f, 1.0f, 1.0f, 0.0f)); imageGameObjectList.Add(Inputfield); imageStartColorList.Add(Inputfield.GetComponent <Image>().color); imageToColorList.Add(new Color(1.0f, 1.0f, 1.0f, 0.0f)); imageGameObjectList.Add(popOutPanel); imageStartColorList.Add(popOutPanel.GetComponent <Image>().color); imageToColorList.Add(new Color(194.0f / 255.0f, 89.0f / 255.0f, 98.0f / 255.0f, 0.0f)); textObject.Add(Holdtext.GetComponent <Text>()); textStartColorList.Add(Holdtext.GetComponent <Text>().color); textToColorList.Add(new Color(1.0f, 1.0f, 1.0f, 0.0f)); textObject.Add(GameObject.Find("MapcodeInsideText").GetComponent <Text>()); textStartColorList.Add(GameObject.Find("MapcodeInsideText").GetComponent <Text>().color); textToColorList.Add(new Color(1.0f, 1.0f, 1.0f, 0.0f)); textObject.Add(inputText.GetComponent <Text>()); textStartColorList.Add(inputText.GetComponent <Text>().color); textToColorList.Add(new Color(1.0f, 1.0f, 1.0f, 0.0f)); mapcodecross.GetComponent <Image>().raycastTarget = false; //StartCoroutine(GetComponent<popout>().popfadeAnimate(.4f, popOutThing)); StartCoroutine(wait(.41f)); }
public void mapcodeButtonOnClick() { if (getMap.isLoading) { return; } if (PlayerPrefs.GetInt("uid", -1) == -1) { Debug.Log("your user data was not found,plase register first of all"); return; } if (mapcodeOpened) { Debug.Log("hello"); return; } mapcodeOpened = true; startTime = Time.time; panel.SetActive(true); imageFadeoutTrigger = true; mapcodecross.SetActive(true); Inputfield.SetActive(true); Holdtext.SetActive(true); popOutPanel.SetActive(true); textFadeTrigger = true; cross.SetActive(false); //blurEffect.GetComponent<Image>().color = imageColor; imageGameObjectList.Add(panel); imageStartColorList.Add(panel.GetComponent <Image>().color); imageToColorList.Add(mapcodePanel); imageGameObjectList.Add(mapcodecross); imageStartColorList.Add(cross.GetComponent <Image>().color); imageToColorList.Add(new Color(1.0f, 1.0f, 1.0f, 1.0f)); imageGameObjectList.Add(Inputfield); imageStartColorList.Add(Inputfield.GetComponent <Image>().color); imageToColorList.Add(new Color(1.0f, 1.0f, 1.0f, 1.0f)); imageGameObjectList.Add(popOutPanel); imageStartColorList.Add(popOutPanel.GetComponent <Image>().color); imageToColorList.Add(new Color(194.0f / 255.0f, 89.0f / 255.0f, 98.0f / 255.0f, 1.0f)); textObject.Add(Holdtext.GetComponent <Text>()); textStartColorList.Add(Holdtext.GetComponent <Text>().color); textToColorList.Add(new Color(1.0f, 1.0f, 1.0f, 1.0f)); textObject.Add(GameObject.Find("MapcodeInsideText").GetComponent <Text>()); textStartColorList.Add(GameObject.Find("MapcodeInsideText").GetComponent <Text>().color); textToColorList.Add(new Color(1.0f, 1.0f, 1.0f, 1.0f)); textObject.Add(inputText.GetComponent <Text>()); textStartColorList.Add(inputText.GetComponent <Text>().color); textToColorList.Add(new Color(1.0f, 1.0f, 1.0f, 1.0f)); //StartCoroutine(GetComponent<popout>().popoutAnimate(.4f, popOutThing)); StartCoroutine(wait(.41f)); mapcodecross.GetComponent <Image>().raycastTarget = true; }