Ejemplo n.º 1
0
        private void Awake()
        {
            // Extract the adaptor selector from the game object assigned in inspector
            Msg.Log("CdmCore.Awake is looking for an AdaptorSelector");
            _adaptorSelector = IAdaptorGO.GetComponent <AdaptorSelector>();

            if (_adaptorSelector == null)
            {
                Msg.LogError("CdmCore cannot find AdaptorSelector");
            }

            // Create graph pool of the appropriate family type
            if (CdmPool == null)
            {
                CdmPool = CreateNewGraph(_adaptorSelector.GetChosenAdaptor().GetFamily());
            }
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Check existence of a node in the underlying source data, specifying a nodeType
 /// The nodeId is passed back as a string in the callbacks
 /// </summary>
 public void CheckNodeExistsInSource(string nodeId, NodeType nodeType, Action <string> callbackOnSuccess, Action <string> callbackOnFail)
 {
     _adaptorSelector.GetChosenAdaptor().CheckNodeExists(nodeId, nodeType, callbackOnSuccess, callbackOnFail);
 }