public InteractWithSceneTransferEvent(SceneTransferMarker marker) { Marker = marker ?? throw new ArgumentNullException(nameof(marker)); }
public static SceneTransferModel FromMarker(SceneTransferMarker marker) { var spawnPoint = marker.SpawnPoint.transform; return(new SceneTransferModel(marker.Id, marker.Scene, spawnPoint)); }
public SceneTransferController(SceneTransferMarker marker, GameObject gameObject, IServiceProvider serviceProvider) : base(gameObject, serviceProvider) { model = SceneTransferModel.FromMarker(marker); }