/** Initalizes the hand and tool lists and recording, if enabled.*/
void Start()
{
// Initialize hand lookup tables.
hand_graphics_ = new Dictionary <int, HandModel>();
hand_physics_ = new Dictionary <int, HandModel>();
tools_ = new Dictionary <int, ToolModel>();
smoothedFixedUpdateOffset_.delay = FIXED_UPDATE_OFFSET_SMOOTHING_DELAY;
if (leap_controller_ == null)
{
Debug.LogWarning(
"Cannot connect to controller. Make sure you have Leap Motion v2.0+ installed");
}
if (enableRecordPlayback && recordingAsset != null)
{
recorder_.Load(recordingAsset);
}
LifecycleEventHandler handler = onStart;
if (handler != null)
{
handler(this);
}
}