コード例 #1
0
        public static void RemoveAllRepeatedHaptic(GameObject target, HapticHandle handle)
        {
            RepeatedHaptic repeatHaptic = target.GetComponent <RepeatedHaptic>();

            if (repeatHaptic != null)
            {
                Destroy(repeatHaptic);
            }
        }
コード例 #2
0
        public static RepeatedHaptic AddRepeatedHaptic(GameObject target, HapticHandle handle)
        {
            RepeatedHaptic repeatHaptic = target.AddComponent <RepeatedHaptic>();

            return(repeatHaptic);
        }