Esempio n. 1
0
    protected override void Init(string serial_key)
    {
#if !UNITY_EDITOR || UNITY_STANDALONE
        _manoLicense = init(_manoSettings);
        _initialized = true;
#endif
    }
Esempio n. 2
0
    /// <summary>
    /// Initiates the library.
    /// </summary>
    protected void InitiateLibrary() 

    {
        _manoLicense = new ManoLicense();

        Debug.Log("Initiating ManoMotion SDK with serial key " + serial_key + " bundle id :" + Application.identifier);
        Init(serial_key);
        Debug.Log("Initialized");
    }
Esempio n. 3
0
    protected void Init(string serial_key)
    {
        if (!isInitialized)
        {
#if !UNITY_EDITOR || UNITY_STANDALONE
            _manoLicense  = init(serial_key);
            isInitialized = true;
#endif
        }
    }
Esempio n. 4
0
    protected override void Init(string serial_key)
    {
#if !UNITY_EDITOR || UNITY_STANDALONE
#endif
        _manoLicense = init(_manoSettings);
        initialized  = true;

        if (OnManoMotionLicenseInitialized != null)
        {
            OnManoMotionLicenseInitialized();
        }
    }
    /// <summary>
    /// Initiates the library.
    /// </summary>
    protected void InitiateLibrary()
    {
        _manoLicense = new ManoLicense();
        string        originalKey            = _licenseKey;
        int           maxSerialKeyCharacters = 23;
        List <string> allCharacters          = new List <string>();

        //Check and remove spaces here
        if (LicenseKey.Length > maxSerialKeyCharacters)
        {
            string removeExtraCharactersAndSpaceString = _licenseKey.Substring(0, maxSerialKeyCharacters);
            LicenseKey = removeExtraCharactersAndSpaceString;
        }

        Init(LicenseKey);
    }
Esempio n. 6
0
    /// <summary>
    /// Initiates the library.
    /// </summary>
    protected void InitiateLibrary()
    {
        _manoLicense = new ManoLicense();
        string        originalKey            = _licenseKey;
        int           maxSerialKeyCharacters = 23;
        List <string> allCharacters          = new List <string>();

        if (LicenseKey.Length > maxSerialKeyCharacters)
        {
            string removeExtraCharactersAndSpaceString = _licenseKey.Substring(0, maxSerialKeyCharacters);
            LicenseKey = removeExtraCharactersAndSpaceString;
        }

#if UNITY_ANDROID
        if (externalRead && externalWrite)
        {
            Init(LicenseKey);
        }
#else
        Init(LicenseKey);
#endif
    }