Exemple #1
0
 //will show card info
 //this is different than the others becasue we need the cnvas that is worked on to still be active so the
 //hover class zoom goes back to normal
 public void ShowCardInfo()
 {
     //this is set to 2 so it is in fron of the previously active canvas
     CardInfoPanelCG.alpha          = 2f;
     CardInfoPanelCG.blocksRaycasts = true;
     CardInfoPanelCG.interactable   = true;
     ShowCardInfoPanel.SetActive(true);
 }
Exemple #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);
    }