완
This commit is contained in:
30
Assets/Scripts/UnicornInput.cs
Normal file
30
Assets/Scripts/UnicornInput.cs
Normal file
@@ -0,0 +1,30 @@
|
||||
using UnityEngine;
|
||||
|
||||
public class UnicornInput : MonoBehaviour
|
||||
{
|
||||
public static UnicornInputSystem Unicorn
|
||||
{
|
||||
get
|
||||
{
|
||||
_unicorn ??= new UnicornInputSystem();
|
||||
return _unicorn;
|
||||
}
|
||||
}
|
||||
|
||||
private static UnicornInputSystem _unicorn;
|
||||
|
||||
private void Awake()
|
||||
{
|
||||
_unicorn ??= new UnicornInputSystem();
|
||||
}
|
||||
|
||||
private void OnEnable()
|
||||
{
|
||||
Unicorn.Enable();
|
||||
}
|
||||
|
||||
private void OnDisable()
|
||||
{
|
||||
Unicorn.Disable();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user