Пример #1
0
 public void SetupNeoMemory()
 {
     neoMemory = NeoMemory.getInstance();
     TEST_CONNECTION_STRING = "URI=file:" + Application.dataPath + "/test/neo_brain_test.db";
     neoMemory.setconnectionString(TEST_CONNECTION_STRING);
     DBUtils.setConnectionString(TEST_CONNECTION_STRING);
     apple = new ObjectData("apple", "red", new List <string>(new string[] { "fruit", "food" }), 200, 500);
 }
Пример #2
0
 public static NeoMemory getInstance()
 {
     if (instance == null)
     {
         instance = new NeoMemory();
     }
     return(instance);
 }
Пример #3
0
 // Use this for initialization
 void Start()
 {
     neoBrain = NeoMemory.getInstance();
     person   = (EntityData)gameObject.GetComponent("EntityData");
 }
Пример #4
0
 // Use this for initialization
 void Start()
 {
     NeoBrain = NeoMemory.getInstance();
     locator  = (LocationScanner)gameObject.GetComponent("LocationScanner");
 }