public void MechanicsButtonPress() { MovementImage.GetComponent <MeshRenderer>().enabled = true; MovementImage.GetComponent <MovieScript>().PlayMovie(); ControlsImage.SetActive(false); ModesText.SetActive(false); ShootingImage.GetComponent <MeshRenderer>().enabled = false; ShieldImage.GetComponent <MeshRenderer>().enabled = false; MeleeImage.GetComponent <MeshRenderer>().enabled = false; FlagImage.GetComponent <MeshRenderer>().enabled = false; TeamAImage.GetComponent <MeshRenderer>().enabled = false; MovementButton.SetActive(true); ShootingButton.SetActive(true); ShieldButton.SetActive(true); MeleeButton.SetActive(true); FlagButton.SetActive(true); TeamAButton.SetActive(true); MovementText.SetActive(true); ModesText.SetActive(false); ShootingText.SetActive(false); ShieldText.SetActive(false); MeleeText.SetActive(false); FlagText.SetActive(false); TeamAText.SetActive(false); }
// Sets all buttons to false and defaults to controls screen. void Start() { ControlsImage.SetActive(false); MovementImage.GetComponent <MeshRenderer>().enabled = false; ShootingImage.GetComponent <MeshRenderer>().enabled = false; ShieldImage.GetComponent <MeshRenderer>().enabled = false; MeleeImage.GetComponent <MeshRenderer>().enabled = false; FlagImage.GetComponent <MeshRenderer>().enabled = false; TeamAImage.GetComponent <MeshRenderer>().enabled = false; MovementButton.SetActive(false); ShootingButton.SetActive(false); ShieldButton.SetActive(false); MeleeButton.SetActive(false); FlagButton.SetActive(false); TeamAButton.SetActive(false); ModesText.SetActive(false); MovementText.SetActive(false); ShootingText.SetActive(false); ShieldText.SetActive(false); MeleeText.SetActive(false); FlagText.SetActive(false); TeamAText.SetActive(false); ControlsButtonPress(); }
public void TeamAButtonPress() { TeamAImage.GetComponent <MeshRenderer>().enabled = true; MovementImage.GetComponent <MeshRenderer>().enabled = false; ShootingImage.GetComponent <MeshRenderer>().enabled = false; ShieldImage.GetComponent <MeshRenderer>().enabled = false; MeleeImage.GetComponent <MeshRenderer>().enabled = false; FlagImage.GetComponent <MeshRenderer>().enabled = false; TeamAText.SetActive(true); MovementText.SetActive(false); ShootingText.SetActive(false); ShieldText.SetActive(false); MeleeText.SetActive(false); FlagText.SetActive(false); TeamAImage.GetComponent <MovieScript>().PlayMovie(); ShootingImage.GetComponent <MovieScript>().StopMovie(); MovementImage.GetComponent <MovieScript>().StopMovie(); ShieldImage.GetComponent <MovieScript>().StopMovie(); MeleeImage.GetComponent <MovieScript>().StopMovie(); FlagImage.GetComponent <MovieScript>().StopMovie(); }