Ejemplo n.º 1
0
 private static void OnSpawnProjection(ref SpawnProjectionMsg msg, MyNetworkClient sender)
 {
     MyEntity projectorEntity;
     MyEntities.TryGetEntityById(msg.EntityId, out projectorEntity);
     var projector = projectorEntity as MyProjector;
     if (projector != null)
     {
         projector.OnSpawnProjection();
     }
 }
Ejemplo n.º 2
0
 public void SendSpawnProjection()
 {
     var msg = new SpawnProjectionMsg();
     msg.EntityId = m_projector.EntityId;
     Sync.Layer.SendMessageToServer(ref msg);
 }