void Start() { // get reference to the transmitter, either a Head or Other OSC component myTransmitter = (OSCTransmitter)GetComponent(typeof(OSCTransmitter)); // tell it to do this when we hear this message myTransmitter.ListenForMessage("/keypress", RespondToKey); }