public static Gaze_GazeCondition CreateGazeCondition(this S_InteractionDefinition _def, string _objectToGazeGUID, Gaze_HoverStates _hoveState, Gaze_GazeConstraints _constraints) { bool gazeIn = _hoveState == Gaze_HoverStates.IN; return(_def.CreateCondition <Gaze_GazeCondition>(_objectToGazeGUID, gazeIn, _constraints)); }
/// <summary> /// Creates a touch condition definition setup as Touch Everywhere /// </summary> /// <param name="_def"></param> /// <returns></returns> public static Gaze_ARKitScreenTouchCondition CreateTouchCondition(this S_InteractionDefinition _def) { return(_def.CreateCondition <Gaze_ARKitScreenTouchCondition>(null, false)); }
public static Gaze_Dependency CreateDependency(this S_InteractionDefinition _def, string _dependentGUID) { return(_def.CreateCondition <Gaze_Dependency>(_dependentGUID)); }
/// <summary> /// Helper method to create a touch condition with the SpatialStoriesAPI /// </summary> /// <param name="_objectToTouchGUID">Object to touch</param> /// <param name="_touchIO">Touch on object or everywhere on the screen ?</param> /// <returns></returns> public static Gaze_ARKitScreenTouchCondition CreateTouchCondition(this S_InteractionDefinition _def, string _objectToTouchGUID, bool _touchIO) { return(_def.CreateCondition <Gaze_ARKitScreenTouchCondition>(_objectToTouchGUID, _touchIO)); }