public void OnJoinHub(object sender, Library.Entities.Hub e) { ManagerPlayer.Instance.Hub = e; ManagerPlayer.Instance.Player = e.GetPlayer(ManagerPlayer.Instance.Player.Username); ManagerState.Instance.ChangeState(EnumState.HUB); }
public override void Start() { base.Start(); //ManagerNetwork.Instance.OnPlayerJoinHub += CharacterCreation_OnPlayerJoinHub; //ManagerNetwork.Instance.OnPlayerQuitHub += CharacterCreation_OnPlayerQuitHub; _player = ManagerPlayer.Instance.Player; _hub = ManagerPlayer.Instance.Hub; _sprites = new Dictionary <Player, CharacterAnimation>(); _spritesToAdd = new Dictionary <Player, CharacterAnimation>(); }