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; } }
// Use this for initialization void Start() { SkinPanel.SetActive(false); HairPanel.SetActive(false); EyesPanel.SetActive(false); }