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