• This project
    • Loading...
  • Sign in

I_Jemin / Unity-OpenVR-Shooter-Template

%ea%b7%b8%eb%a6%bc1
Go to a project
Toggle navigation Toggle navigation pinning
  • Projects
  • Groups
  • Snippets
  • Help
  • Project
  • Activity
  • Repository
  • Pipelines
  • Graphs
  • Issues 0
  • Merge Requests 0
  • Snippets
  • Network
  • Create a new issue
  • Builds
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Network
  • Compare
  • Branches
  • Tags
Switch branch/tag
  • Unity-OpenVR-Shooter-Template
  • Assets
  • OpenVR-Shooter
  • Scripts
  • VRInteract
  • VRInteratable.cs
  • I_Jemin's avatar
    Seperate scripts path · a74d525f ...
    a74d525f
    Add VREyeRaycaster
    
    Add VRInteratable
    I_Jemin authored 2017-12-03 13:53:07 +0900
VRInteratable.cs 392 Bytes
Raw Blame History Permalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Events;

public class VRInteratable : MonoBehaviour {

	[SerializeField]
	private UnityEvent onVRTriggerClick;

	[SerializeField]
	private UnityEvent onVREyeEnter;

	public void OnTriggerClick()
	{
		onVRTriggerClick.Invoke();
	}

	public void OnVREyeEnter()
	{
		onVREyeEnter.Invoke();
	}
}