private void Start() { avatars = GameResourceManager.GetAvatars(); if (avatars.Length > 0) { avatarIndex = 0; } SelectionList.LoadEntries(RTSLockstep.PlayerManager.GetPlayerNames()); if (clickVolume < 0.0f) { clickVolume = 0.0f; } if (clickVolume > 1.0f) { clickVolume = 1.0f; } List <AudioClip> sounds = new List <AudioClip>(); List <float> volumes = new List <float>(); sounds.Add(clickSound); volumes.Add(clickVolume); audioElement = new AudioElement(sounds, volumes, "SelectPlayerMenu", null); }