public void startNSVotation(Task w, int attitude) { // w.isWaitingForTaskToComplete = true; waiter = w; angSpeed = 0.0f; angle = 0.0f; state = 6; selectedItem = gameController.selectedItem; titleText.text = rosetta.rosetta.retrieveString(textPrefix, selectedItem); titleFader.reset(); testDescrText.reset(); //titleFader.fadeIn (); bigIcon[selectedItem].extend(); testVote = -1; attitudeStrings.rosetta = rosetta.rosetta; attitudeStrings.reset(); voteText.text = attitudeStrings.getString(attitude); interrogationFader.Start(); NSVoted = false; Debug.Log("<color=red>fadeOut línea 245</color>"); interrogationFader.fadeOut(); helpButtonScaler.scaleIn(); rouletteRig.gameObject.SetActive(false); arrowRig.gameObject.SetActive(false); isNegativeSituation = true; neededVotes = gameController.nPlayers - 1; titleFader.fadeOut(); testDescrText.fadeOut(); for (int i = 0; i < judges.Length; ++i) { judges [i].gameObject.GetComponent <UIAnimatedImage> ().reset(); judges [i].extend(); } if (attitude != gameController.NSPlayerAttitude) { botonaco.extend(); fader.fadeIn(); } else { fader.setFadeValue(1.0f); botonaco.retract(); } }
// Update is called once per frame void Update() { if (going) { if (remainingTime > 0.0f) { remainingTime -= Time.deltaTime; if (remainingTime <= 0.0f) { if (fader != null) { if (fadeIn) { fader.fadeIn(); } else { fader.fadeOut(); } } if (textFader != null) { if (fadeIn) { textFader.fadeIn(); } else { textFader.fadeOut(); } } } } } }
public void setText(int id) { nextText = (string)table.getElement(1, id); descriptionFader.fadeOut(); timer = 0.0f; state = 200; }
public void leaveClassroomButton() { //macrostate = SEARCHCLASSROOMMENU; canPlayWithZeroCredit = -1; controlHub.masterController.resetPlayerChosenDebate(); controlHub.inertiaController.isEnabled = false; // allow touch control of scene controlHub.touchableThingsController.cantTouchThis = true; //controlHub.touchableThingsController.cantTouchThis = true; controlHub.touchInertiaController.isEnabled = false; exitPanel.hideTask(this); state = 94; disableConenctButton(); controlHub.masterController.localUserRoom = ""; controlHub.masterController.localUserClassroom = ""; controlHub.gameController.randomId = -1; controlHub.masterController.saveMoarData(); // update room save data controlHub.uiController.setGroupBarsColor(Color.white); clearReps(); currentRoom.fadeOut(); inClassroom = false; macrostate = ROOTMENU; controlHub.searchDebateController.finish_expeditive(); controlHub.nexusController.itemUntouch(); controlHub.uiController.hideNPlayersInRoom(); controlHub.networkAgent.noConnectionTimer.stop(); controlHub.networkAgent.disconnect(); }
// Update is called once per frame void Update() { if (state == 0) // idle { } if (state == 1) { bool newv = Version.newVersionAvailable(); if (newv) { ++state; } else { mcRef.setActivityFinished(); } } if (state == 2) { fader1.fadeIn(); fader2.fadeIn(); fader3.fadeIn(); ++state; } if (state == 3) { if (Input.GetMouseButtonDown(0)) { elapsedTime = 0.0f; fader1.fadeOut(); fader2.fadeOut(); fader3.fadeOut(); ++state; } } if (state == 4) { elapsedTime += Time.deltaTime; if (elapsedTime > 2.0f) { ++state; } } if (state == 5) { mcRef.setActivityFinished(); } }
public void fadeOut() { if (textFader_N != null) { textFader_N.fadeOut(); } if (imageFader_N != null) { imageFader_N.fadeIn(); } if (iconFader_N != null) { iconFader_N.fadeIn(); } }
public void fadeOut() { buttonImage.fadeIn(); buttonText.fadeOut(); }
public void debateDetails() { if (state != 0) { return; } if (touchIsMovement) { touchIsMovement = false; return; } if (stateWaitScroll != -1) // show details { stateWaitScroll = -1; // disabled if (page < numPages) { if (!debateChosen [page]) { tick.unpress(); } else { tick.press(); } } tick.gameObject.GetComponent <UIFaderScript> ().fadeOut(); left1.fadeOut(); left2.fadeOut(); right1.fadeOut(); right2.fadeOut(); //eligeText.SetActive (false); down1.fadeIn(); down2.fadeIn(); if (page < numPages) { debateDescription.GetComponent <Text> ().text = controlHub.masterController.dbinfo.items [debateIndices [page]].description; } debateDescription.fadeIn(); descriptionBG.fadeOut(); targetScale = 0.45f; state = 3; showingDetail = true; } else // hide details { stateWaitScroll = 0; if (page != 0) { left1.fadeIn(); left2.fadeIn(); } if (page != (numPages - 1)) { right1.fadeIn(); right2.fadeIn(); } //eligeText.SetActive (true); down1.fadeOut(); down2.fadeOut(); tick.gameObject.GetComponent <UIFaderScript> ().fadeIn(); targetScale = 1.0f; state = 3; debateDescription.fadeOut(); descriptionBG.fadeIn(); } }
public void hideReps() { repsValue_Text.fadeOut(); repsRValue_Text.fadeOut(); }
public void hideNPlayersInRoom() { connectedSabios_Text.fadeOut(); connectedSabiosValue_Text.fadeOut(); }
public void hide() { fader.fadeOut(); }