public void commenceSelection() { StartingGame = true; IceAnimator.SetBool("Done", true); FireAnimator.SetBool("Done", true); VoidAnimator.SetBool("Done", true); GrassAnimator.SetBool("Done", true); FocusTarget = plobjchosen.transform; if (plobjchosen.gameObject.Equals(IcePlanet.gameObject)) { StageDestination = 0; } else if (plobjchosen.gameObject.Equals(FirePlanet.gameObject)) { StageDestination = 1; } else if (plobjchosen.gameObject.Equals(GrassPlanet.gameObject)) { StageDestination = 2; } else if (plobjchosen.gameObject.Equals(VoidPlanet.gameObject)) { StageDestination = 3; } }
public int ControllerPlanetSelectionIndex; //Which planet. public void startSelectingPlanets() { OriginalCameraPosition = MyCamera.transform.position; OriginalWindow = MyCamera.orthographicSize; AudioManager.AM.playMusic(AudioManager.AM.PlanetSelectMusic, 0f, 1f, true); AudioManager.AM.crossfade(AudioManager.AM.CurrentMusic, 1f, 10f); //AudioManager.AM.MusicAudioMixer.audioMixer.SetFloat(); Cursor.visible = true; IceAccess = true; FireAccess = true; JungleAccess = true; VoidAccess = false; bool vo = true; if (GameManager.TheGameManager.IceWorldCompleted) { IceAccess = false; } else { vo = false; } if (GameManager.TheGameManager.FireWorldCompleted) { FireAccess = false; } else { vo = false; } if (GameManager.TheGameManager.JungleWorldCompleted) { JungleAccess = false; } else { vo = false; } VoidAccess = vo; if (GameManager.TheGameManager.VoidWorldCompleted || GameManager.TheGameManager.FinishedGame || GameManager.TheGameManager.VoidWorldCheatEnabled) { FireAccess = true; IceAccess = true; JungleAccess = true; VoidAccess = true; } //VoidAccess = false;//The stage isn't up yet//Yes it is /* * if (GameManager.TheGameManager.IceWorldCompleted) * { * if (GameManager.TheGameManager.FireWorldCompleted) * { * FireAccess = false; * IceAccess = false; * JungleAccess = true; * } else * { * FireAccess = true; * IceAccess = false; * } * } else * { * FireAccess = false; * IceAccess = true; * JungleAccess = false; * } */ FireAnimator.SetBool("Identified", true); VoidAnimator.SetBool("Identified", VoidAccess); if (VoidAccess) { VoidParticles.Play(); } IceAnimator.SetBool("Identified", true); GrassAnimator.SetBool("Identified", true); SelectingPlanets = true; BlackFade.color = new Color(0f, 0f, 0f, 1f); }