Basic pheromone placement

This commit is contained in:
Pascal Serrarens 2026-02-09 11:32:25 +01:00
parent e8471683d6
commit 9db7de16ea

View File

@ -498,8 +498,8 @@ public class ClusterInspector : Editor {
}
}
//private int selectedInputType = 0;
private bool showSynapses = true;
protected bool breakOnWake = false;
void DrawInspector(VisualElement inspectorContainer) {
if (inspectorContainer == null)
return;
@ -605,11 +605,19 @@ public class ClusterInspector : Editor {
// Handles.color = Color.yellow;
// Handles.DrawLine(this.gameObject.transform.position, this.gameObject.transform.position + worldVector);
// }
EditorGUILayout.Space();
breakOnWake = EditorGUILayout.Toggle("Break on wake", breakOnWake);
if (breakOnWake) {
if (this.currentNucleus.isSleeping == false)
Debug.Break();
}
});
inspectorContainer.Add(container);
}
void OnSceneGUI(SceneView sceneView) {
if (this.gameObject != null) {
Vector3 worldVector = this.gameObject.transform.TransformVector(this.currentNucleus.outputValue);