using System; using UnityEngine; public class CharacterSelectionMenu : MonoBehaviour { private void Start() { PlayerManager instance = PlayerManager.instance; instance.PlayerJoinedAction = (Action)Delegate.Combine(instance.PlayerJoinedAction, new Action(PlayerJoined)); } private void PlayerJoined(Player joinedPlayer) { base.transform.GetChild(0).GetChild(PlayerManager.instance.players.Count - 1).GetComponent() .StartPicking(joinedPlayer); } private void Update() { } }