Basic pheromone placement
This commit is contained in:
parent
e8471683d6
commit
9db7de16ea
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user