修改UI
This commit is contained in:
3
Assets/Scripts/Common/Common/Services/Preview.meta
Normal file
3
Assets/Scripts/Common/Common/Services/Preview.meta
Normal file
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 65341d2b856a4aef82e238b10798b430
|
||||
timeCreated: 1771091754
|
||||
@@ -0,0 +1,15 @@
|
||||
using UnityEngine.SceneManagement;
|
||||
|
||||
namespace NBF
|
||||
{
|
||||
public class PreviewManager : MonoService<PreviewManager>
|
||||
{
|
||||
private Scene _scene;
|
||||
|
||||
protected override void OnAwake()
|
||||
{
|
||||
_scene = SceneManager.CreateScene("RuntimePreviewScene",
|
||||
new CreateSceneParameters(LocalPhysicsMode.None));
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: d3ee9b922c69484282c9080842cb1d02
|
||||
timeCreated: 1771091765
|
||||
@@ -0,0 +1,18 @@
|
||||
using UnityEngine.InputSystem;
|
||||
|
||||
namespace NBF.Setting
|
||||
{
|
||||
public abstract class ControllerInputOption : InputOption
|
||||
{
|
||||
protected override bool IsBindingContains(InputBinding binding)
|
||||
{
|
||||
var path = binding.path;
|
||||
if (path.Contains("<Keyboard>") || path.Contains("<Mouse>"))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: c3ed7d01cac8436fb64fef818e33f173
|
||||
timeCreated: 1770998136
|
||||
Reference in New Issue
Block a user