Пример #1
0
 private void Uninitialize()
 {
     if (m_QPortalUserActionsCallbackInterface != null)
     {
         QPortalUser.SetCallbacks(null);
     }
     m_QPortalUser          = null;
     m_QPortalUser_Movement = null;
     m_Initialized          = false;
 }
Пример #2
0
    public void SetAsset(InputActionAsset newAsset)
    {
        if (newAsset == asset)
        {
            return;
        }
        var QPortalUserCallbacks = m_QPortalUserActionsCallbackInterface;

        if (m_Initialized)
        {
            Uninitialize();
        }
        asset = newAsset;
        QPortalUser.SetCallbacks(QPortalUserCallbacks);
    }