Let go food only at home
This commit is contained in:
parent
62bacfb1c0
commit
94df545222
@ -99,7 +99,6 @@ namespace NanoBrain.Unity {
|
||||
}
|
||||
else {
|
||||
// This does not work properly yet it seems
|
||||
Debug.Log("Instantiate");
|
||||
ClusterPrefab clusterPrefab = prefabProp.objectReferenceValue as ClusterPrefab;
|
||||
cluster = new(clusterPrefab);
|
||||
object parent = SerializedPropertyUtility.GetParentObjectAndMember(targetObject, property.propertyPath, out var memberInfo, out int outIndex);
|
||||
@ -140,7 +139,7 @@ namespace NanoBrain.Unity {
|
||||
}
|
||||
|
||||
private static void OnSceneGUI(SceneView sceneView) {
|
||||
if (selectedTarget == null)
|
||||
if (Application.isPlaying == false || selectedTarget == null)
|
||||
return;
|
||||
|
||||
GameObject gameObject = null;
|
||||
|
||||
@ -380,7 +380,7 @@ namespace NanoBrain {
|
||||
/// <summary>
|
||||
/// Time in seconds after the last update the neuron can go to sleep
|
||||
/// </summary>
|
||||
public static readonly float timeToSleep = 1f;
|
||||
public static readonly float timeToSleep = 0.5f;
|
||||
|
||||
public bool breakOnUpdate = false;
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user