28 lines
577 B
C#
28 lines
577 B
C#
#if UNITY_EDITOR
|
|
using Unity.Entities;
|
|
using UnityEngine.SceneManagement;
|
|
|
|
namespace Helpers
|
|
{
|
|
partial class LoadConnectionSceneSystem : SystemBase
|
|
{
|
|
protected override void OnCreate()
|
|
{
|
|
Enabled = false;
|
|
|
|
if (SceneManager.GetActiveScene() == SceneManager.GetSceneByBuildIndex(0))
|
|
{
|
|
return;
|
|
}
|
|
|
|
SceneManager.LoadScene(0);
|
|
}
|
|
|
|
protected override void OnUpdate()
|
|
{
|
|
throw new System.NotImplementedException();
|
|
}
|
|
}
|
|
}
|
|
|
|
#endif |