public override bool MouseButtonDown(int mouseButton) { if (m_editingAction && m_action != null && mouseButton != m_action.PrimaryMouseButton) { if (m_action.Commit()) { m_action.EndPlanning(); m_editingAction = false; } return(true); } else { // TODO: Clear any existing action! //ActionSourceInput inputType = ActionSourceInput.None; // TODO: This should store the old plan until the new one is committed if (m_action != null) { Debug.Log("Doing delete..."); m_action.DeletePlanning(); } StartAction(mouseButton); } return(true); }