Skip to content

Instantly share code, notes, and snippets.

@0V
Created November 13, 2018 17:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 0V/335bb9242159647d98da2a0b0bea1e79 to your computer and use it in GitHub Desktop.
Save 0V/335bb9242159647d98da2a0b0bea1e79 to your computer and use it in GitHub Desktop.
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