private void showOrHideWarningPanel() { int currentApi = Vibration.GetApiLevel(); int minApiRequired = 29; bool supportAmplitude = Vibration.HasAmplitudeControl(); if (currentApi < minApiRequired) { WarningPanel.SetActive(true); } if (!supportAmplitude) { warningAmpPanel.SetActive(true); } }
private void AmplitudeControl() { text2.text = "Has Amplitude Control? " + Vibration.HasAmplitudeControl().ToString(); }