I am new to C# so that is the real issue, but I have managed to develop a Game and am presently working on the short list. Of which I need to detect if the device is connected or not here is the code I wrote:
using UnityEngine;
using System.Collections;
using Leap;
public class detectLeapDevicIsPlugedIn : MonoBehaviour {
Controller checkLeapController;
public bool statusDevice;
void Start () {
checkLeapController = new Controller();
statusDevice=checkLeapController.IsConnected();
Debug.Log("Have Device Status");
}
void Update () {
}
void OnGUI(){
// PLACE HOLDERS FOR CODE
// LEAP DEVICE NOT CONNECTED......
// QUIT
}
}
The above code gives me the following message:
The member `Leap.Controller.IsConnected' cannot be used as method or delegate
Could any one out there with a c# back ground help me with this or point me in the right direction. I don't mind researching it but after five hours I am going too at least have to ask for help. Thank you all......