Created
November 13, 2018 17:02
-
-
Save 0V/335bb9242159647d98da2a0b0bea1e79 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using RxVRTK; | |
using UniRx; | |
using UnityEngine; | |
public class SomeObject : RxVRTK_InteractableObject | |
{ | |
protected void Start() | |
{ | |
this.StartUsingAsObservable() | |
.Subscribe(user => | |
{ | |
Debug.Log(user.name + " is using this object!"); | |
}); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment