Ejemplo n.º 1
0
        protected virtual void Start()
        {
            _text.text = Version;

            if (MMVibrationManager.iOS())
            {
                _text.text += " iOS " + MMVibrationManager.iOSVersion.ToString();
            }

            if (MMVibrationManager.Android())
            {
                _text.text += " Android " + MMNVAndroid.AndroidSDKVersion().ToString();
            }
        }
        /// <summary>
        /// Displays the debug information (API version on Android, iOS sdk version, and error message otherwise)
        /// </summary>
        protected virtual void DisplayInformation()
        {
            if (MMVibrationManager.Android())
            {
                _platformString = "API version " + MMNVAndroid.AndroidSDKVersion().ToString();
            }
            else if (MMVibrationManager.iOS())
            {
                _platformString = "iOS " + MMNViOS.iOSSDKVersion();
            }
            else
            {
                _platformString = Application.platform + ", not supported by Nice Vibrations for now.";
            }

            DebugTextBox.text = "Platform : " + _platformString + "\n Nice Vibrations v" + _CURRENTVERSION;
        }