19 lines
598 B
C#
19 lines
598 B
C#
using System.Reflection;
|
|
using SepCore.InputModule.Runtime;
|
|
using UnityEngine;
|
|
|
|
namespace SepCore.InputModule.Tests
|
|
{
|
|
internal static class InputModuleTestFactory
|
|
{
|
|
public static InputModuleComponent CreateComponent(GameObject gameObject)
|
|
{
|
|
InputModuleComponent component = gameObject.AddComponent<InputModuleComponent>();
|
|
typeof(InputModuleComponent)
|
|
.GetField("_loadBindingOverridesOnInit", BindingFlags.Instance | BindingFlags.NonPublic)
|
|
.SetValue(component, false);
|
|
return component;
|
|
}
|
|
}
|
|
}
|