Ejemplo n.º 1
0
        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>();
            }
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Change the control in code or in a UnityEvent inspector.
 /// </summary>
 /// <param name="newControl"></param>
 public void SetGestureControl(GestureInteractiveControl newControl)
 {
     Control = newControl;
 }