blob: ed6c36ab54b7ec585ea18ed6e1fd25c08953d684 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
using System;
using UnityEngine;
public class CharacterSelectionMenu : MonoBehaviour
{
private void Start()
{
PlayerManager instance = PlayerManager.instance;
instance.PlayerJoinedAction = (Action<Player>)Delegate.Combine(instance.PlayerJoinedAction, new Action<Player>(PlayerJoined));
}
private void PlayerJoined(Player joinedPlayer)
{
base.transform.GetChild(0).GetChild(PlayerManager.instance.players.Count - 1).GetComponent<CharacterSelectionInstance>()
.StartPicking(joinedPlayer);
}
private void Update()
{
}
}
|