public ReceiveTeleportation ( Object teleportedObject, bool teleportedToSelf ) : void | ||
teleportedObject | Object | The teleported object. |
teleportedToSelf | bool | Whether the teleportation is local or from a remote peer. |
return | void |
public void ReceiveTeleportation(Object teleportedObject, bool teleportedToSelf)
{
if (null == teleportedObject)
{
throw new Exception("Null object passed into ReceiveTeleportation");
}
TeleportState teleportState = (TeleportState) teleportedObject;
teleportState.TeleportedToSelf = teleportedToSelf;
_newOrganismQueue.Enqueue(teleportState);
}