Example #1
0
 public InteractWithSceneTransferEvent(SceneTransferMarker marker)
 {
     Marker = marker ?? throw new ArgumentNullException(nameof(marker));
 }
Example #2
0
        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);
 }