// Use this for initialization void Start() { //-94.151609 - -94.150757 = -0.000852 = 65.94 = 77394.3661971831 meters/degree // 45.551457 - 45.551190 = 0.000267 = 29.29 = 109700.3745318352 location = FindObjectOfType <RetrieveLocation>(); }
private void Awake() { if (_instance != null && _instance != this) { Destroy(this.gameObject); } else { _instance = this; } }
// Sort like an API to access Core Location Functions, will be simplyfying queries // Gyro Coming Soon void GetDetails() { RetrieveLocation RL = RetrieveLocation.Instance; if (Input.location.status == LocationServiceStatus.Running && RL.currentCompass.enabled == true) // Location service has started { LocationInfo locationData = RL.GetLocationData(); // Contains Longitude Latitude, updates in every 0.5 meters float trueHeading = RL.GetTrueHeading(); // True Heading returns float float magneticHeading = RL.GetMagneticHeading(); // Magnetic Heading return float Quaternion q = RL.GetOrientation(); // Gyro Attitude Quaternion } }
/* * Constructor. * <param name="gameId">game name</param> * <param name="steam">steam id</param> * <param name="gameDir">game pathname below user dir</param> * <param name="schriptFile">name of the script file containing mod entries</param> */ public Game(string gameId, string steam, string gameDir, string scriptFile = "user.script.txt") { Id = gameId; steamId = steam; UserDir = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "The Creative Assembly", gameDir); ScriptFilename = scriptFile; DefaultPfhType = "PFH3"; retrievers = new RetrieveLocation[] { delegate() { return(gameDirectory); }, delegate() { return(GetInstallLocation(WOW_NODE)); }, delegate() { return(GetInstallLocation(WIN_NODE)); } }; }