public void AttachConnection() { lastClicked.AddNextStep(secondClicked.id); secondClicked = null; lastClicked = null; state = EditingState.standart; EditorSceneManager.MarkSceneDirty(EditorSceneManager.GetActiveScene()); }