void Start()
 {
     if (Instance == null)
     {
         DontDestroyOnLoad(gameObject);
         CurrentGpsPosition = new Helper.LocationData();
         Instance           = this;
         circle             = null;
     }
     // player = new Helper.Player("Lukas", "1234567", 1);
 }
示例#2
0
    static Config()
    {
        DebugGpsPosition                    = new Helper.LocationData();
        DebugGpsPosition.Latitude           = 48.05080f;
        DebugGpsPosition.Longitude          = 8.20834f;
        DebugGpsPosition.Altitude           = 800;
        DebugGpsPosition.HorizontalAccuracy = 10;
        DebugGpsPosition.VerticalAccuracy   = 10;
        DebugGpsPosition.Timestamp          = 5;
        DebugGpsPosition.Status             = "Debugging";
        DebugGpsPosition.HeadingDirection   = 0;

        MaxCameraOffset = new Vector3(1f, 1f, 0.5f);

                #if UNITY_EDITOR
        UseDebugGpsPosition = true;
        TimeToGoodGpsFix    = 1;
        Debug.Log("Using debug position.");
                #elif UNITY_ANDROID
        UseDebugGpsPosition = false;
        TimeToGoodGpsFix    = 10;
                #endif
    }