23 lines
485 B
C#
23 lines
485 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
public class CharSelectionManager : MonoBehaviour
|
|
{
|
|
|
|
[SerializeField] private GameObject[] characterPrefabs;
|
|
|
|
public void ChangeCharacter(int index)
|
|
{
|
|
for (int i = 0; i < characterPrefabs.Length; i++)
|
|
{
|
|
characterPrefabs[i].SetActive(false);
|
|
}
|
|
characterPrefabs[index].SetActive(true);
|
|
}
|
|
void Update()
|
|
{
|
|
|
|
}
|
|
}
|