Can someone tell me where the problem with my code pls
[150304-unity-2018414f1-personal-storeunity-blueded-game-p.png*_|150304]
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;
public class SwitchVeh : MonoBehaviour
{
private GameObject[] vehList;
private int index;
private void Start()
{
index = PlayerPrefs.GetInt("VehSelected");
vehList = new GameObject[transform.childCount];
for(int i=0; i<transform.childCount; i++)
vehList *= transform.GetChild(i).gameObject;*
foreach(GameObject go in vehList)
go.SetActive(false);
if (vehList[index])
vehList[index].SetActive(true);
}
public GameObject[] Tab;
public void SelectTab(int buttonIndex)
{
for (int i = 0; i < Tab.Length; ++i)
Tab*.SetActive(i == buttonIndex);*
}
public void ConfirmButton()
{
PlayerPrefs.SetInt(“VehSelected”, index);
SceneManager.LoadScene(“GameMenu”);
}
}
_*