Google VR SDK Event Trigger detects no function

i am trying to add event listener to my object by adding Event Trigger, i have written script that will be executed if the listener is triggered, i have set the method to be public and yet the Event Trigger unable to list my public methods , i tried to use one of script from GVR demo that works but when i used it in my object Event Trigger it does not list any function

3045029--228252--awe.PNG

i just solved it myself, instead of putting the script directly, i have to attach the script to an object and drag that object to the Event Trigger