10using System.Collections;
28 public AnimationCurve
fade;
35 private float fadedIn = 0.0f;
36 private int frames_disconnected_ = 0;
41 if (_image ==
null) { _image = GetComponent<
UnityEngine.
UI.Image>(); }
45 void SetAlpha(
float alpha) {
57 frames_disconnected_ = 0;
59 frames_disconnected_++;
65 fadedIn = Mathf.Clamp(fadedIn, 0.0f, 1.0f);
67 SetAlpha(
fade.Evaluate(fadedIn));
The Controller class is your main interface to the Leap Motion Controller.
bool IsConnected
Reports whether this Controller is connected to the Leap Motion service and the Leap Motion hardware ...