protected bool ReturnToMenu() { PreparationScreen.SetActive(true); GameplayScreen.SetActive(false); BulletCheckScreen.SetActive(false); return(false); }
protected bool CheckBullets() { WarningBox.SetActive(false); PreparationScreen.SetActive(false); GameplayScreen.SetActive(false); BulletCheckScreen.SetActive(true); CheckedBullets = true; return(false); }
IEnumerator FadeEffect() { int Frame = 0; AllRiseObj.SetActive(true); for (int T = 0; T <= AllRiseAnimSprites.Count() - 1; T++) { AllRiseRenderer.material.mainTexture = AllRiseAnimSprites[Frame]; Frame++; yield return(new WaitForSecondsRealtime(0.025f)); } AllRiseObj.SetActive(false); PreparationScreen.SetActive(false); GameplayScreen.SetActive(true); BulletCheckScreen.SetActive(false); }
#pragma warning disable IDE0051 // Remove unused private members void Start() { Countdown = CountdownSetup; CheckTruthBulletsSel.OnHighlight = delegate { CheckTruthBulletsBar.material.color = new Color32(202, 58, 60, 0); }; CheckTruthBulletsSel.OnHighlightEnded = delegate { CheckTruthBulletsBar.material.color = new Color32(33, 29, 33, 0); }; StartTrialSel.OnHighlight = delegate { StartTrialBar.material.color = new Color32(202, 58, 60, 0); }; StartTrialSel.OnHighlightEnded = delegate { StartTrialBar.material.color = new Color32(33, 29, 33, 0); }; ThisModule.OnActivate = delegate { //Drop interactions here /*TruthCilinderSelect.OnInteractEnded = StopMemory; * TruthCilinderSelect.OnInteract = Memory; * TruthBulletSelect.OnInteract = BulletFire;*///Not these yet WarningCheckBulletsBtn.OnInteract = CheckBullets; WarningStartTrialBtn.OnHighlight = delegate { CheckedBullets = true; }; WarningStartTrialBtn.OnInteract = StartTrial; //Drop interactions here CheckTruthBulletsSel.OnInteract = CheckBullets; ReturnToPrepBtn.OnInteract = ReturnToMenu; StartTrialSel.OnInteract = StartTrial; //StartCoroutine("CountdownCoroutine"); //ArgumentAndBulletCreation(); //StartCoroutine("SpinAnim"); }; int HoveredBullet = 0; MenuBullet1.OnHighlightEnded = delegate { HoveredBullet = 0; MenuBullet1Render.material.color = new Color32(33, 29, 33, 0); }; MenuBullet2.OnHighlightEnded = delegate { HoveredBullet = 0; MenuBullet2Render.material.color = new Color32(33, 29, 33, 0); }; MenuBullet3.OnHighlightEnded = delegate { HoveredBullet = 0; MenuBullet3Render.material.color = new Color32(33, 29, 33, 0); }; MenuBullet4.OnHighlightEnded = delegate { HoveredBullet = 0; MenuBullet4Render.material.color = new Color32(33, 29, 33, 0); }; MenuBullet5.OnHighlightEnded = delegate { HoveredBullet = 0; MenuBullet5Render.material.color = new Color32(33, 29, 33, 0); }; MenuBullet6.OnHighlightEnded = delegate { HoveredBullet = 0; MenuBullet6Render.material.color = new Color32(33, 29, 33, 0); }; ReturnToPrepBtn.OnHighlightEnded = delegate { HoveredBullet = 0; ReturnToPrepRender.material.color = new Color32(33, 29, 33, 0); }; MenuBullet1.OnHighlight = delegate { HoveredBullet = 1; MenuBullet1.GetComponent <Renderer>().material.color = new Color32(202, 58, 60, 0); MenuBulletImage.material.mainTexture = PossibleBulletImages[HoveredBullet - 1]; BulletDescription.text = "This is the description of Truth\nBullet #1. This will also contain\nthe important details!"; }; MenuBullet2.OnHighlight = delegate { HoveredBullet = 2; MenuBullet2Render.material.color = new Color32(202, 58, 60, 0); MenuBulletImage.material.mainTexture = PossibleBulletImages[HoveredBullet - 1]; BulletDescription.text = "This is the description of Truth\nBullet #2. This will also contain\nthe important details!"; }; MenuBullet3.OnHighlight = delegate { HoveredBullet = 3; MenuBullet3Render.material.color = new Color32(202, 58, 60, 0); MenuBulletImage.material.mainTexture = PossibleBulletImages[HoveredBullet - 1]; BulletDescription.text = "This is the description of Truth\nBullet #3. This will also contain\nthe important details!"; }; MenuBullet4.OnHighlight = delegate { HoveredBullet = 4; MenuBullet4Render.material.color = new Color32(202, 58, 60, 0); MenuBulletImage.material.mainTexture = PossibleBulletImages[HoveredBullet - 1]; BulletDescription.text = "This is the description of Truth\nBullet #4. This will also contain\nthe important details!"; }; MenuBullet5.OnHighlight = delegate { HoveredBullet = 5; MenuBullet5Render.material.color = new Color32(202, 58, 60, 0); MenuBulletImage.material.mainTexture = PossibleBulletImages[HoveredBullet - 1]; BulletDescription.text = "This is the description of Truth\nBullet #5. This will also contain\nthe important details!"; }; MenuBullet6.OnHighlight = delegate { HoveredBullet = 6; MenuBullet6Render.material.color = new Color32(202, 58, 60, 0); MenuBulletImage.material.mainTexture = PossibleBulletImages[HoveredBullet - 1]; BulletDescription.text = "This is the description of Truth\nBullet #6. This will also contain\nthe important details!"; }; ReturnToPrepBtn.OnHighlight = delegate { HoveredBullet = 7; ReturnToPrepRender.material.color = new Color32(202, 58, 60, 0); MenuBulletImage.material.mainTexture = PossibleBulletImages[HoveredBullet - 1]; BulletDescription.text = "Return to preparation and\nstart the Class Trial."; }; WarningCheckBulletsBtn.OnHighlight = delegate { Debug.Log("Selected \"Check Truth Bullets\""); WarningCheckBulletsRender.material.color = new Color32(202, 58, 60, 0); }; WarningCheckBulletsBtn.OnHighlightEnded = delegate { WarningCheckBulletsRender.material.color = new Color32(33, 29, 33, 0); }; WarningStartTrialBtn.OnHighlight = delegate { Debug.Log("Selected \"Start Class Trial\""); WarningStartTrialRender.material.color = new Color32(202, 58, 60, 0); }; WarningStartTrialBtn.OnHighlightEnded = delegate { WarningStartTrialRender.material.color = new Color32(33, 29, 33, 0); }; WarningMessageText[0].SetActive(false); WarningMessageText[1].SetActive(false); WarningMessageText[2].SetActive(false); WarningBox.transform.localScale = new Vector3(1.416986f, 0.03774609f, 0); WarningBox.SetActive(false); AllRiseObj.SetActive(false); PreparationScreen.SetActive(true); GameplayScreen.SetActive(false); BulletCheckScreen.SetActive(false); }