public static TactilePatternSimple Create(TactileEffectSimple[] effects)
            {
                TactilePatternSimple ps = _new();

                ps.pattern = effects;
                return(ps);
            }
Esempio n. 2
0
            public static TactileHandler Create(DeviceZone.AbstractTactileDevice_Zone dz, TactileMode mode, TactileEffectSimple[] pattern)
            {
                TactileHandler hh = Create(dz, mode);

                hh.pattern_simple = TactilePatternSimple.Create(pattern);
                return(hh);
            }
            private static TactilePatternSimple _new()
            {
                TactilePatternSimple ps = UnityEngine.ScriptableObject.CreateInstance <TactilePatternSimple>();

                return(ps);
            }
 public TactileEffectRange(System.UInt32 low, System.UInt32 high, TactileEffectSimple[] pattern) : this(low, high)
 {
     pattern_simple = TactilePatternSimple.Create(pattern);
 }