-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
18 changed files
with
130 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
using System; | ||
|
||
namespace ClusterVR.CreatorKit.Editor.Core.Venue.Json | ||
{ | ||
[Serializable] | ||
public class PostNotifyFinishedUploadPayload | ||
{ | ||
public bool isPublish; | ||
} | ||
} |
3 changes: 3 additions & 0 deletions
3
Editor/Core/Venue/Json/PostNotifyFinishedUploadPayload.cs.meta
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,5 +36,7 @@ public StringValueObject(string value) | |
{ | ||
Value = value; | ||
} | ||
|
||
public override string ToString() => Value; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
12 changes: 12 additions & 0 deletions
12
Editor/Preview/EditorSettings/ProjectSettingsConfigurer.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
using UnityEngine; | ||
|
||
namespace ClusterVR.CreatorKit.Editor.Preview.EditorSettings | ||
{ | ||
public static class ProjectSettingsConfigurer | ||
{ | ||
public static void Setup() | ||
{ | ||
Physics.autoSyncTransforms = true; | ||
} | ||
} | ||
} |
3 changes: 3 additions & 0 deletions
3
Editor/Preview/EditorSettings/ProjectSettingsConfigurer.cs.meta
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Threading.Tasks; | ||
using ClusterVR.CreatorKit.Item; | ||
using UnityEngine; | ||
|
||
namespace ClusterVR.CreatorKit.Preview.Item | ||
{ | ||
public sealed class ItemRespawner | ||
{ | ||
readonly float despawnHeight; | ||
readonly List<IMovableItem> movableItems; | ||
|
||
public ItemRespawner (float despawnHeight, IEnumerable<IMovableItem> movableItems) | ||
{ | ||
this.despawnHeight = despawnHeight; | ||
this.movableItems = movableItems.ToList(); | ||
CheckHeight(); | ||
} | ||
|
||
async void CheckHeight() | ||
{ | ||
while (Application.isPlaying) | ||
{ | ||
foreach (var movableItem in movableItems) | ||
{ | ||
if (movableItem.Position.y < despawnHeight) movableItem.Respawn(); | ||
} | ||
await Task.Delay(300); | ||
} | ||
} | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters