Пример #1
0
 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);
 }
Пример #2
0
        private void BecameAvatarHandler(object sender, EventArgs e)
        {
            PlayerView pv = GameResources.ActorManager.GetPlayerViewOfAvatar(Owner.Id);

            pv.AvatarDesc.ItemDropped += ItemDroppedHandler;
        }