public void OnSetPath(SetPathToTargetMessage message) { foreach (var selectableObject in m_SelctedObject) { selectableObject.Path.MoveToDestination(message.WorldPosition, message.Time); m_Bus.Send(new PathMessage(selectableObject.Name, selectableObject.Path.Motion)); } }
private void MoveMarker(SetPathToTargetMessage message) { m_Marker.Position = VectorConversions.ToOgreVector(message.WorldPosition); }