Ejemplo n.º 1
0
 //will show acidic waters
 public void ShowAcidicWaters()
 {
     ShowNone();
     AcidicWatersCG.alpha          = 1f;
     AcidicWatersCG.blocksRaycasts = true;
     AcidicWatersCG.interactable   = true;
     ShowAcidicWaters1.SetActive(true);
 }
Ejemplo n.º 2
0
    //will show none
    public void ShowNone() //disables all canvases
    {
        //disables person
        PersonCG.alpha          = 0f;
        PersonCG.blocksRaycasts = false;
        PersonCG.interactable   = false;
        ShowPerson.SetActive(false);

        //disables CP1
        Cp1CG.alpha          = 0f;
        Cp1CG.blocksRaycasts = false;
        Cp1CG.interactable   = false;
        ShowCP11.SetActive(false);

        //disables cp2
        Cp2CG.alpha          = 0f;
        Cp2CG.blocksRaycasts = false;
        Cp2CG.interactable   = false;
        ShowCP21.SetActive(false);

        //disables cp3
        Cp3CG.alpha          = 0f;
        Cp3CG.blocksRaycasts = false;
        Cp3CG.interactable   = false;
        ShowCP31.SetActive(false);

        //disables pause
        PauseCG.alpha          = 0f;
        PauseCG.blocksRaycasts = false;
        PauseCG.interactable   = false;
        ShowPause1.SetActive(false);

        //disables deck discard
        ShowDeckDiscardCG.alpha          = 0f;
        ShowDeckDiscardCG.blocksRaycasts = false;
        ShowDeckDiscardCG.interactable   = false;
        ShowDeckDiscard1.SetActive(false);

        //disables card info panel
        CardInfoPanelCG.alpha          = 0f;
        CardInfoPanelCG.blocksRaycasts = false;
        CardInfoPanelCG.interactable   = false;
        ShowCardInfoPanel.SetActive(false);

        //disables acidic waters
        AcidicWatersCG.alpha          = 0f;
        AcidicWatersCG.blocksRaycasts = false;
        AcidicWatersCG.interactable   = false;
        ShowAcidicWaters1.SetActive(false);

        //disables learn to play
        LearnToPlayCG.alpha          = 0f;
        LearnToPlayCG.blocksRaycasts = false;
        LearnToPlayCG.interactable   = false;
        ShowLearnToPlay1.SetActive(false);
    }