protected override void Awake() { //Create signal for ITransformGestureActor interface _onFlickGesture = new Signal <FlickGestureInfo>(); //Get Gesture _flickGesture = GetComponent <global::TouchScript.Gestures.FlickGesture>(); //Create gesture VO gestureInfos = new FlickGestureInfo(); base.Awake(); }
protected override void Awake() { //Create signal for ITransformGestureActor interface _onFlickGesture = new Signal<FlickGestureInfo>(); //Get Gesture _flickGesture = GetComponent<global::TouchScript.Gestures.FlickGesture>(); //Create gesture VO gestureInfos = new FlickGestureInfo(); base.Awake(); }
protected override void OnDestroy() { base.OnDestroy(); //Destroy ITransformGestureActor interface 's signal _onFlickGesture.RemoveAllListeners(); _onFlickGesture = null; //Destroy gesture reference StopListenGestures(); _flickGesture = null; //Destroy gesture VO gestureInfos = null; }
protected override void OnDestroy() { base.OnDestroy(); //Destroy ITransformGestureActor interface 's signal _onFlickGesture.RemoveAllListeners(); _onFlickGesture = null; //Destroy gesture reference StopListenGestures(); _flickGesture = null; //Destroy gesture VO gestureInfos = null; }
/// <summary> /// Implement onFlickGesture in your subclass ! /// </summary> /// <param name="infos"></param> protected virtual void onFlickGesture(FlickGestureInfo infos) { }