示例#1
0
    public void Init(MapMode mapMode, string userId, string mapId, string developerKey)
    {
        if (mapsyncInterface != null)
        {
            Debug.Log("Warning: Mapsync has already been initialized and cannot be initialized again.");
            return;
        }

        this.Mode = mapMode;

        mapsyncInterface = new UnityMapsyncLibNativeInterface(mapId, userId, developerKey, mapMode == MapMode.MapModeMapping);
    }
    public void Init(MapMode mapMode, string userId, string mapId)
    {
        if (mapsyncInterface != null)
        {
            Debug.Log("Warning: Mapsync has already been initialized and cannot be initialized again.");
            Application.Quit();
            return;
        }

        this.Mode = mapMode;

        if (string.IsNullOrEmpty(DeveloperKey))
        {
            Debug.Log("Jido Maps Requires a Developer Key. Paste your developer key into the Unity Inspector Window for the MapSession GameObject");
            Application.Quit();
        }

        mapsyncInterface = new UnityMapsyncLibNativeInterface(mapId, userId, DeveloperKey, mapMode == MapMode.MapModeMapping);
    }