Beispiel #1
0
    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);
    }
Beispiel #2
0
    // 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();
    }