Hi,
I trying to use Signal with the last version of Unity but the editor is not showing my gameobject function when parameters are added to it. I followed the tutorial found at http://unitypatterns.com/resource/signals and my code is right, apparently. Any idea of whats can be happening?
The editor are showing the gameobject functions with no parameters and they are working fine.
Thanks
usingUnityEngine;usingSystem.Collections;publicclassBoardController:MonoBehaviour{voidStart(){}voidUpdate(){}[Signal]voidonBoardTouchEnd(TouchHelpertouchHelper){Debug.Log("BoardController::onBoardTouchEnd");}}usingUnityEngine;usingSystem.Collections;publicclassTouchHelper:MonoBehaviour{publicSignalonTouchEnd=newSignal(typeof(TouchHelper));privatebooldragging=false;voidOnMouseUp(){this.dragging=false;if(this.onTouchEnd!=null){this.onTouchEnd.Invoke(this);}}}
Hi,
I trying to use Signal with the last version of Unity but the editor is not showing my gameobject function when parameters are added to it. I followed the tutorial found at http://unitypatterns.com/resource/signals and my code is right, apparently. Any idea of whats can be happening?
The editor are showing the gameobject functions with no parameters and they are working fine.
Thanks