-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
- Loading branch information
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
This file was deleted.
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
using UnityEditor; | ||
using UnityEngine; | ||
using UnityEditor.SceneManagement; | ||
|
||
namespace DarkFlow.Editor | ||
{ | ||
[InitializeOnLoadAttribute] | ||
public static class StartupSceneLoader | ||
{ | ||
static StartupSceneLoader() | ||
{ | ||
EditorApplication.playModeStateChanged += LoadStartupScene; | ||
} | ||
|
||
static void LoadStartupScene(PlayModeStateChange state) | ||
{ | ||
if (state == PlayModeStateChange.ExitingEditMode) | ||
{ | ||
EditorSceneManager.SaveCurrentModifiedScenesIfUserWantsTo(); | ||
} | ||
|
||
if (state == PlayModeStateChange.EnteredPlayMode) | ||
{ | ||
if (EditorSceneManager.GetActiveScene().buildIndex != 0 && EditorSceneManager.GetActiveScene().name != "systemTest") | ||
{ | ||
EditorSceneManager.LoadScene(0); | ||
|
||
} | ||
} | ||
} | ||
} | ||
} |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,3 +31,4 @@ void OnServerSpawnPlayer() | |
} | ||
} | ||
} | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
using System.Collections; | ||
using System.Collections.Generic; | ||
using Unity.Netcode.Components; | ||
using UnityEngine; | ||
|
||
[DisallowMultipleComponent] | ||
public class ClientNetworkAnimator : NetworkAnimator | ||
{ | ||
protected override bool OnIsServerAuthoritative() | ||
{ | ||
return false; | ||
} | ||
} | ||
|