private void SpawnPlayerActor(PlayerView player) { Actor newActor = SpawnTemplate(player.AvatarDesc.TemplateName); newActor.Customize(player.AvatarDesc, mContentLoader); player.AssignAvatar(newActor.Id); newActor.OnBecameAvatar(); OnAvatarSpawnedEvent(newActor.Id); }
private void BecameAvatarHandler(object sender, EventArgs e) { PlayerView pv = GameResources.ActorManager.GetPlayerViewOfAvatar(Owner.Id); pv.AvatarDesc.ItemDropped += ItemDroppedHandler; }