River Jiang
2020-10-27 1f5eda1c9d22a3676298751c7282a5874f13bed0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
 
namespace MoreMountains.NiceVibrations
{
    public static class MMNVPlatform
    {
 
        /// <summary>
        /// Returns true if the current platform is Android, false otherwise.
        /// </summary>
        public static bool Android()
        {
#if UNITY_ANDROID && !UNITY_EDITOR
                        return true;
#else
            return false;
#endif
        }
 
        /// <summary>
        /// Returns true if the current platform is iOS, false otherwise
        /// </summary>
        /// <returns><c>true</c>, if O was ied, <c>false</c> otherwise.</returns>
        public static bool iOS()
        {
#if UNITY_IOS && !UNITY_EDITOR
                        return true;
#else
            return false;
#endif
        }
    }
}