29 lines
484 B
C#
29 lines
484 B
C#
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("押した瞬間");
|
|
}
|
|
}
|