Test追加パックVol.2
This commit is contained in:
28
Assets/Scripts/InputLR.cs
Normal file
28
Assets/Scripts/InputLR.cs
Normal file
@@ -0,0 +1,28 @@
|
||||
using UnityEngine;
|
||||
using Unity.VRTemplate;
|
||||
|
||||
public class InputLR : MonoBehaviour
|
||||
{
|
||||
void Update()
|
||||
{
|
||||
if(InputManagerLR.PrimaryButtonR())
|
||||
{
|
||||
OnPrimaryButtonR();
|
||||
}
|
||||
|
||||
if(InputManagerLR.PrimaryButtonR_OnPress())
|
||||
{
|
||||
OnPressPrimaryButtonR();
|
||||
}
|
||||
}
|
||||
|
||||
void OnPrimaryButtonR()
|
||||
{
|
||||
//邪魔になるためなし
|
||||
}
|
||||
|
||||
void OnPressPrimaryButtonR()
|
||||
{
|
||||
Debug.Log("押した瞬間");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user