Avatar Changer Script ~upd~ 【macOS OFFICIAL】

public GameObject[] avatarPrefabs; private GameObject currentAvatar;

if (currentAvatar != null) Destroy(currentAvatar); avatar changer script

currentAvatar = Instantiate(avatarPrefabs[index], transform.position, Quaternion.identity); currentAvatar.transform.parent = this.transform; public GameObject[] avatarPrefabs