First commit on my server, yey!

This commit is contained in:
Sebastian Bularca
2026-03-19 18:12:07 +01:00
parent 5139ec2cec
commit fedd1961a0
602 changed files with 101587 additions and 6 deletions

View File

@@ -0,0 +1,28 @@
using UnityEditor;
using UnityEngine;
namespace Nox.Core
{
[CustomEditor(typeof(SceneReference))]
public class SceneReferenceEditor : Editor {
private SceneReference sceneReference;
private SerializedProperty gameState;
private SerializedProperty playMode;
private void OnEnable() {
sceneReference = (SceneReference)target;
playMode = serializedObject.FindProperty("playMode");
gameState = serializedObject.FindProperty("gameState");
}
public override void OnInspectorGUI() {
EditorGUILayout.PropertyField(gameState, new GUIContent("Game Active State"));
if(sceneReference.gameState == GameState.GameMode) {
EditorGUILayout.PropertyField(playMode, new GUIContent("Play Mode"));
}
serializedObject.ApplyModifiedProperties();
}
}
}

View File

@@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: c6fdc03906db404a8f51b19aadd8e304
timeCreated: 1770537083