Advertisement
Guest User

Untitled

a guest
Apr 10th, 2019
239
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.66 KB | None | 0 0
  1. using System;
  2. using System.Collections;
  3. using System.Collections.Generic;
  4. using System.Data;
  5. using UnityEngine;
  6. using Vuforia;
  7.  
  8. public class Config : MonoBehaviour
  9. {
  10.     Vuforia.VuforiaConfiguration.GenericVuforiaConfiguration generic = new VuforiaConfiguration.GenericVuforiaConfiguration();
  11.     // Start is called before the first frame update
  12.     [RuntimeInitializeOnLoadMethod(RuntimeInitializeLoadType.BeforeSceneLoad)]
  13.     private void Change()
  14.     {
  15.         DataTable dt = DataBase.GetTable("SELECT applicense FROM personalsettings");
  16.         generic.LicenseKey = dt.Rows[0][1].ToString();
  17.  
  18.     }
  19.     void Start()
  20.     {
  21.         Change();
  22.  
  23.      }
  24.  
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement