예제 #1
0
    void Start()
    {
        oscInterface.OtherUserDataReceivedEvent += EmitOtherUserParticles;

        // tell the MocapReceiver to call the GetWandPosition method from this script every time it gets new data for the rigidbody named in the first argument
        mocapReceiver.RegisterRigidBodyDelegate(otherClientRBName, SetTransform);
    }
 void Start()
 {
     receiver.RegisterRigidBodyDelegate(id, AssignHatData);
 }
예제 #3
0
 void Start()
 {
     // tell the MocapReceiver to call the GetWandPosition method from this script every time it gets new data for the rigidbody named in the first argument
     mocapReceiver.RegisterRigidBodyDelegate(rbName, SetTransform);
 }