AwesomeRunner/Assets/Scripts/Utils/ApplicationUtil.cs
VladimirPirozhenko f2797a5355 Updated input system, added touch inputs
Now InputTranslator has its own interface to provide polymorphism in GameSession class
Touch input read only if target platform is android
2022-08-16 04:01:08 +03:00

21 lines
452 B
C#

using System.Collections;
using UnityEngine;
public class ApplicationUtil
{
public static RuntimePlatform platform
{
get
{
#if UNITY_ANDROID
return RuntimePlatform.Android;
#elif UNITY_IOS
return RuntimePlatform.IPhonePlayer;
#elif UNITY_STANDALONE_OSX
return RuntimePlatform.OSXPlayer;
#elif UNITY_STANDALONE_WIN
return RuntimePlatform.WindowsPlayer;
#endif
}
}
}