/// <summary>
 /// Gets the current API instance
 /// </summary>
 /// <returns>Current API instance</returns>
 public static OpenGloveAPI GetInstance()
 {
     if (instance == null)
     {
         instance = new OpenGloveAPI();
     }
     return(instance);
 }
Example #2
0
    public void Awake()
    {
        api = OpenGloveAPI.GetInstance();
        try
        {
            gloves = api.Devices;

            Debug.Log(gloves);
        }
        catch
        {
            Debug.Log("ERROR: El servicio no esta activo");
        }
    }