mirror of
https://github.com/hanetzer/sdraw_mods_cvr.git
synced 2025-09-03 10:29:22 +00:00
Instance set changes
Additional animator parameters Reworked rigidbodies Update to latest LeapC and LeapCSharp
This commit is contained in:
parent
1f0b518761
commit
075ff67304
38 changed files with 8310 additions and 8646 deletions
|
@ -19,16 +19,22 @@ namespace ml_lme
|
|||
|
||||
void Awake()
|
||||
{
|
||||
if(Instance == null)
|
||||
Instance = this;
|
||||
|
||||
ScriptableObject.CreateInstance<Leap.Unity.UltraleapSettings>().ResetToDefaults();
|
||||
|
||||
m_leapController = new Leap.Controller();
|
||||
m_leapData = new LeapParser.LeapData();
|
||||
if((Instance != null) && (Instance != this))
|
||||
{
|
||||
Object.DestroyImmediate(this);
|
||||
return;
|
||||
}
|
||||
|
||||
Instance = this;
|
||||
DontDestroyOnLoad(this);
|
||||
|
||||
ScriptableObject.CreateInstance<Leap.Unity.UltraleapSettings>().ResetToDefaults();
|
||||
m_leapController = new Leap.Controller();
|
||||
m_leapData = new LeapParser.LeapData();
|
||||
}
|
||||
|
||||
void Start()
|
||||
{
|
||||
m_leapController.Device += this.OnLeapDeviceInitialized;
|
||||
m_leapController.DeviceFailure += this.OnLeapDeviceFailure;
|
||||
m_leapController.DeviceLost += this.OnLeapDeviceLost;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue