static partial void PostUnregisterGameObjUserHook(AKRESULT result, UnityEngine.GameObject gameObject, ulong id)
 {
     if (result == AKRESULT.AK_Success)
     {
         RegisteredGameObjects.Remove(id);
     }
 }
 public void OnDestroy()
 {
     if (staticInit == true)
     {
         instances.Remove((T)this);
     }
 }
Example #3
0
    static partial void PostUnregisterGameObjUserHook(AKRESULT result, UnityEngine.GameObject gameObject, ulong id)
    {
#if UNITY_EDITOR
        if (Application.isPlaying)
#endif
        {
            if (result == AKRESULT.AK_Success)
            {
                RegisteredGameObjects.Remove(id);
            }
        }
    }
Example #4
0
    protected void OnKeyReleaseEvent(object sender, KeyReleaseEventArgs a)
    {
        var key = a.Event.Key;

        if (key == Gdk.Key.Shift_L)
        {
            selectedControls = shiftlessControls;
            foreach (var ctrl in shiftedControls)
            {
                if (pressed.Contains(ctrl.Key))
                {
                    ctrl.Value.Stop();

                    if (shiftlessControls.ContainsKey(ctrl.Key))
                    {
                        shiftlessControls[ctrl.Key].Start();
                    }
                }
            }
        }
        else
        {
            if (shiftlessControls.ContainsKey(key))
            {
                shiftlessControls[key].Stop();
            }
            if (shiftedControls.ContainsKey(key))
            {
                shiftedControls[key].Stop();
            }
            if (pressed.Contains(key))
            {
                pressed.Remove(key);
            }
        }
    }