Adaug proiectul Unity

This commit is contained in:
2026-11-01 23:39:55 +02:00
parent cb14d9d37d
commit 863eac8f2c
23463 changed files with 5412601 additions and 0 deletions
@@ -0,0 +1,28 @@
#if UNITY_EDITOR
using UnityEditor;
namespace UnityEngine.InputSystem.Editor
{
/// <summary>
/// Editor-specific singleton wrapper for RemoteInputPlayerConnection.
/// In the editor, we need to make sure that we get the same instance after domain reloads.
/// Otherwise, callbacks we have registered before the reload will no longer be valid, because
/// the object instance they point to will not deserialize to a valid object.
/// </summary>
internal class RemoteInputPlayerConnectionEditor : ScriptableSingleton<RemoteInputPlayerConnectionEditor>
{
[SerializeField]
private RemoteInputPlayerConnection m_Connection;
public static RemoteInputPlayerConnection GetInstance()
{
if (instance.m_Connection == null)
{
instance.m_Connection = ScriptableObject.CreateInstance<RemoteInputPlayerConnection>();
instance.m_Connection.hideFlags = HideFlags.HideAndDontSave;
}
return instance.m_Connection;
}
}
}
#endif
@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 8f6c78efe2b334209908669a961187f4
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant: