Log in or register to post comments

Register Virtual Button Get an Error

October 5, 2013 - 4:22am #1

Hi, i get an error in this code:

vbb.RegisterEventHandler(mImageTarget.GetComponent<VirtualButtonEventHandler>());

these are the errors:

 

1. Assets/Script/VirtualButtonMenu.cs(204,76): error CS0246: The type or namespace name `VirtualButtonEventHandler' could not be found. Are you missing a using directive or an assembly reference?
2. Assets/Script/VirtualButtonMenu.cs(204,29): error CS1502: The best overloaded method match for `VirtualButtonBehaviour.RegisterEventHandler(IVirtualButtonEventHandler)' has some invalid arguments
3. Assets/Script/VirtualButtonMenu.cs(204,29): error CS1503: Argument `#1' cannot convert `object' expression to type `IVirtualButtonEventHandler'

can anyone help me,,?
Thank you very much.
 

Log in or register to post comments