void Update() { int currentCapacity = foragerMemory.info.currentCapacity; if (currentCapacity != 30) { if (ForagerMemory.openlist.Count == 0) { foragerExplore.Explore(); } else { FoodInfo info = foragerMemory.PickBestFood(); foragerMovement.GoTo(info.position); foragerMemory.currentAction = "Go to food"; } } else { foragerMovement.GoTo(foragerMemory.hivePos); foragerMemory.currentAction = "Go home"; } }