public static void RemoveAllRepeatedHaptic(GameObject target, HapticHandle handle) { RepeatedHaptic repeatHaptic = target.GetComponent <RepeatedHaptic>(); if (repeatHaptic != null) { Destroy(repeatHaptic); } }
public static RepeatedHaptic AddRepeatedHaptic(GameObject target, HapticHandle handle) { RepeatedHaptic repeatHaptic = target.AddComponent <RepeatedHaptic>(); return(repeatHaptic); }