Ejemplo n.º 1
0
 public void AllInactive()
 {
     SabiasQ0.SetActive(false);
     SabiasQ1.SetActive(false);
     SabiasQ2.SetActive(false);
     SabiasQ3.SetActive(false);
     SabiasQ4.SetActive(false);
     SabiasQ5.SetActive(false);
     SabiasQ6.SetActive(false);
     SabiasQ7.SetActive(false);
     SabiasQ8.SetActive(false);
     SabiasQ9.SetActive(false);
     SabiasQ10.SetActive(false);
     SabiasQ11.SetActive(false);
     SabiasQ12.SetActive(false);
     SabiasQ13.SetActive(false);
     SabiasQ14.SetActive(false);
     SabiasQ15.SetActive(false);
 }
Ejemplo n.º 2
0
    public void GetOneSabiasQueCanvas(int index)
    {
        switch (index)
        {
        case 1:
            SabiasQ0.SetActive(true);
            break;

        case 2:
            SabiasQ1.SetActive(true);
            break;

        case 3:
            SabiasQ2.SetActive(true);
            break;

        case 4:
            SabiasQ3.SetActive(true);
            break;

        case 5:
            SabiasQ4.SetActive(true);
            break;

        case 6:
            SabiasQ5.SetActive(true);
            break;

        case 7:
            SabiasQ6.SetActive(true);
            break;

        case 8:
            SabiasQ7.SetActive(true);
            break;

        case 9:
            SabiasQ8.SetActive(true);
            break;

        case 10:
            SabiasQ9.SetActive(true);
            break;

        case 11:
            SabiasQ10.SetActive(true);
            break;

        case 12:
            SabiasQ11.SetActive(true);
            break;

        case 13:
            SabiasQ12.SetActive(true);
            break;

        case 14:
            SabiasQ13.SetActive(true);
            break;

        case 15:
            SabiasQ14.SetActive(true);
            break;

        case 16:
            SabiasQ15.SetActive(true);
            break;

        default:
            break;
        }
    }