Esempio n. 1
0
 //will show learn to play
 public void ShowLearnToPlay()
 {
     ShowNone();
     LearnToPlayCG.alpha          = 1f;
     LearnToPlayCG.blocksRaycasts = true;
     LearnToPlayCG.interactable   = true;
     ShowLearnToPlay1.SetActive(true);
 }
Esempio 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);
    }