protected override void Awake() { base.Awake(); // get the gestureInteractiveControl if not previously set // This could reside on another GameObject, so we will not require this to exist on this game object. if (Control == null) { Control = GetComponent <GestureInteractiveControl>(); } }
/// <summary> /// Change the control in code or in a UnityEvent inspector. /// </summary> /// <param name="newControl"></param> public void SetGestureControl(GestureInteractiveControl newControl) { Control = newControl; }