Ejemplo n.º 1
0
    public void ChangePanel(int index)
    {
        switch (index)
        {
        case 0:
            SkinPanel.SetActive(true);
            HairPanel.SetActive(false);
            EyesPanel.SetActive(false);
            break;

        case 1:
            SkinPanel.SetActive(false);
            HairPanel.SetActive(true);
            EyesPanel.SetActive(false);
            break;

        case 2:
            SkinPanel.SetActive(false);
            HairPanel.SetActive(false);
            EyesPanel.SetActive(true);
            break;

        default:
            SkinPanel.SetActive(false);
            HairPanel.SetActive(false);
            EyesPanel.SetActive(false);
            break;
        }
    }
Ejemplo n.º 2
0
 // Use this for initialization
 void Start()
 {
     SkinPanel.SetActive(false);
     HairPanel.SetActive(false);
     EyesPanel.SetActive(false);
 }