public void SetVibrationToggleStatus() { if (DataManager.Instance.Vibration == 0) { DataManager.Instance.Vibration = 1; vibrationImage.SetActive(true); Taptic.Vibrate(); } else { DataManager.Instance.Vibration = 0; vibrationImage.SetActive(false); } }
public void TriggerTaptic(string type) { if (type == "warning") { Taptic.Warning(); } else if (type == "failure") { Taptic.Failure(); } else if (type == "success") { Taptic.Success(); } else if (type == "light") { Taptic.Light(); } else if (type == "medium") { Taptic.Medium(); } else if (type == "heavy") { Taptic.Heavy(); } else if (type == "default") { Taptic.Default(); } else if (type == "vibrate") { Taptic.Vibrate(); } else if (type == "selection") { Taptic.Selection(); } }