This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using System; | |
/* Timer class. | |
Example usage: | |
public class Mover : MonoBehaviour { | |
public Vector3 startPosition; | |
public Vector3 endPosition; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
public class ThisPlatform { | |
// This property allows you to use ThisPlatform.IsIphoneX to determine if you should do anything special in your code when checking for iPhone X. | |
public static bool IsIphoneX { | |
get { | |
#if UNITY_IOS | |
// If testing without an iPhone X, add FORCE_IPHONEX to your Scripting Define Symbols. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
// DERIVED FROM https://stewmcc.com/post/check-for-android-tv-in-unity/ | |
public class Platform_AndroidTV : MonoBehaviour { | |
#if UNITY_ANDROID | |
sbyte isAndroidTV = -1; // -1 == not checked yet; 0 == false; 1 == true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// https://partner.steamgames.com/doc/features/steam_controller/iga_file | |
// 💡 each action in your VDF file must have a unique string identifier. | |
// In other words, if you use an action called "up" in two different action sets, this function will only ever return one of them and the other will be ignored. | |
// Version 2.0 of this VDF file for Tallowmere 2 -- | |
// We are just mirroring InputDeviceButtonID where possible | |
"In Game Actions" { |